bicep: relax dotnet SDK rollForward

This commit is contained in:
David McFarland
2025-02-18 13:55:07 -04:00
parent 383ceb66d1
commit 0e971ddda5
+6
View File
@@ -5,6 +5,7 @@
fetchFromGitHub,
dotnetCorePackages,
mono,
jq,
}:
buildDotnetModule rec {
@@ -20,6 +21,9 @@ buildDotnetModule rec {
postPatch = ''
substituteInPlace src/Directory.Build.props --replace-fail "<TreatWarningsAsErrors>true</TreatWarningsAsErrors>" ""
# Upstream uses rollForward = disable, which pins to an *exact* .NET SDK version.
jq '.sdk.rollForward = "latestMinor"' < global.json > global.json.tmp
mv global.json.tmp global.json
'';
projectFile = [
@@ -33,6 +37,8 @@ buildDotnetModule rec {
dotnet-runtime = dotnetCorePackages.runtime_8_0;
nativeBuildInputs = [ jq ];
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); # mono is not available on aarch64-darwin
nativeCheckInputs = [ mono ];