-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop nix 2.18 #359215
Drop nix 2.18 #359215
Conversation
Why no throw alias? |
Fixed. |
|
Known issue |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-12-02-nix-team-meeting-minutes-199/56961/1 |
Funny. We just reverted the tarball-mirror script to 2.18, since newer release broke the API to check for valid store paths. |
Maybe some other version in between also works well. For me it was just easiest to keep the version that we had until now (because it's 24.05 default). |
@vcunat This function still exist but you need instantiate a store: https://github.com/NixOS/nix/blob/ff00eebb16fc4c0fd4cebf0cbfc63c471e3c4abd/src/perl/t/init.t#L9 There is no other nix version that is lower than 2.24 to migrate to. The proper fix is to upgrade it to the new API. |
I do have code for that already. But we ran into other regressions instead: |
This would be a lot more reasonable if Nix versions above 2.18 weren't full of bugs and regressions. See: NixOS/nix#11756 (comment) |
Things done
Depends on #354148nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.