-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
lib/minver: bump to 2.3.17 #354586
lib/minver: bump to 2.3.17 #354586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this is a breaking change, but I think this is fine -- realistically, nobody is still evaluating Nixpkgs with 2.3.16 or below.
I can see arguments for and against a changelog entry, given we're just bumping to a patch version, so that's up to you.
The first version that supports zstd compression, to create the option to eventually switch compression for the binary cache. It was released one year ago on 2023-11-03 and first shipped in NixOS 23.11.
Changelog added. |
Thanks! LGTM. cc @RossComputerGuy for final OK as 24.11 RM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently I can't read and didn't notice @infinisil was pinged lol. Will wait on him. |
Hmm, this is not really what minver is supposed to be used for, it's documented as the "minimum required version for evaluating Nixpkgs". It's arguably even possible to evaluate with Nix 2.3 but substitute with 2.3.17 to use zstd. So is this really the right place to make this change? What happens if we just don't do this? Is there another mechanism that fits better? Nothing obvious comes to mind, so this might really be the best way of doing it, but I'd like to see a bit more background on why this is needed. |
That's fair. Earlier versions will be unable to substitute, which makes nixpkgs a fairly expensive proposition. The solution is then to upgrade nix, and this kinda achieves the same effect, even though it does not break eval. That being said, I'm fine with not doing this change, if that means we don't have to wait for minver changes to switch the compression algorithm. |
How about we make sure that all versions of Nix that don't support zstd are marked as deprecated in at least supported releases. |
What mechanism do you have in mind? |
I had |
Hacky alternative that probably breaks other things: Wrap |
Maybe this bump is the best way after all, because the above options just suck. We'd need to fix |
Yeah, I'd be fine with merging if it's the only good option. (curses nix-env from the distance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the best way to express that. People using older versions can indeed eval, but shouldn't expect the cache to work. Which is one of the things people find very valuable, I think.
The first version that supports zstd compression, to create the option to eventually switch compression for the binary cache.
It was released one year ago on 2023-11-03 and first shipped in NixOS 23.11.
Things done
nix.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.