| 18 May 2025 |
Whovian9369 | Is there a suggested way to deal with an outdated global.json? Is it just to do something similar to substituteInPlace global.json --replace-fail 4.20.69 ${dotnetCorePackages.sdk_9_0.version}? | 22:41:17 |
Whovian9369 | ("Outdated" relative to the SDK that I'm using to build, anyway.) | 22:41:36 |
Whovian9369 | Oh, maybe I could just change the allowPrerelease key to true? That may be the easiest solution here. | 22:47:52 |
6pak | what is your actual case? | 22:48:21 |
6pak | is the global.json pinning a exactly specific version? | 22:48:32 |
6pak | or just the major/feature band | 22:48:39 |
Whovian9369 | Specific version | 22:48:49 |
Whovian9369 | $ PAGER= nix log .#git
warning: Git tree '/home/whovian/.flakes/aaru' is dirty
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/czn1ndgzbim47hr5yaqsaagns42854yp-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configureNuget
@nix { "action": "setPhase", "phase": "configureNuget" }
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application 'new' does not exist.
* You intended to execute a .NET SDK command:
A compatible .NET SDK was not found.
Requested SDK version: 9.0.100
global.json file: /build/source/global.json
Installed SDKs:
9.0.203 [/nix/store/j7w50zcrv5rybkj23vqw062zry8gn1wx-dotnet-sdk-9.0.203/share/dotnet/sdk]
Install the [9.0.100] .NET SDK or update [/build/source/global.json] to match an installed SDK.
Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
| 22:48:59 |
6pak | I'd just rm the global.json | 22:49:32 |
6pak | assuming the build still works on 9.0.2xx | 22:49:42 |
Whovian9369 | My flake is https://github.com/Whovian9369/aaru-nix-flake (Updating it which is why I'm encountering this) Upstream is https://github.com/aaru-dps/Aaru
global.json was introduced with https://github.com/aaru-dps/Aaru/commit/8ee0926210df8e3a443456b567e17ad6f319125f | 22:50:07 |
6pak | that global.json doesn't make much sense | 22:50:55 |