Skip to content

Commit ba4c0e5

Browse files
authored
dotnet-{sdk,runtime,aspnetcore}_{6,7}: mark as EOL (#358533)
2 parents 9443f54 + 3561b1d commit ba4c0e5

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

pkgs/development/compilers/dotnet/build-dotnet.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ mkWrapper type (
229229
binaryBytecode
230230
binaryNativeCode
231231
];
232+
knownVulnerabilities =
233+
lib.optionals
234+
(lib.elem (lib.head (lib.splitVersion version)) [
235+
"6"
236+
"7"
237+
])
238+
[
239+
"Dotnet SDK ${version} is EOL, please use 8.0 (LTS) or 9.0 (Current)"
240+
];
232241
};
233242
}
234243
)

pkgs/development/compilers/dotnet/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ makeScopeWithSplicing' {
7272
}
7373
// lib.optionalAttrs config.allowAliases {
7474
# EOL
75-
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
76-
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
77-
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
78-
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
79-
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 6.0 (LTS) or 7.0 (Current)";
75+
sdk_2_1 = throw "Dotnet SDK 2.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
76+
sdk_2_2 = throw "Dotnet SDK 2.2 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
77+
sdk_3_0 = throw "Dotnet SDK 3.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
78+
sdk_3_1 = throw "Dotnet SDK 3.1 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
79+
sdk_5_0 = throw "Dotnet SDK 5.0 is EOL, please use 8.0 (LTS) or 9.0 (Current)";
8080
}
8181
// dotnet_6_0
8282
// dotnet_7_0

0 commit comments

Comments
 (0)