Skip to content

Commit

Permalink
dotnet-{sdk,runtime,aspnetcore}_{6,7}: mark as EOL (#358533)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Nov 25, 2024
2 parents 9443f54 + 3561b1d commit ba4c0e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/compilers/dotnet/build-dotnet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ mkWrapper type (
binaryBytecode
binaryNativeCode
];
knownVulnerabilities =
lib.optionals
(lib.elem (lib.head (lib.splitVersion version)) [
"6"
"7"
])
[
"Dotnet SDK ${version} is EOL, please use 8.0 (LTS) or 9.0 (Current)"
];
};
}
)
10 changes: 5 additions & 5 deletions pkgs/development/compilers/dotnet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ makeScopeWithSplicing' {
}
// lib.optionalAttrs config.allowAliases {
# EOL
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
}
// dotnet_6_0
// dotnet_7_0
Expand Down

0 comments on commit ba4c0e5

Please sign in to comment.