-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
In pure mode, set builtins.nixVersion to a constant #5971
base: master
Are you sure you want to change the base?
Conversation
This prevents issues like NixOS/nixpkgs#156527. Eventually we should do this in impure mode as well. Issue NixOS#5970.
I’m not sure it’s a good idea. Granted it’s a source of impurity, but so is |
Yes, but expressions like |
Adding a |
Yes, that sounds like a fairly good one (and maybe just deprecating |
Let's not forget about |
This does make error messages less informative. Another solution is to poison the string context, similar to what we could do for secret strings, but slightly different allowed usages. String context poisoning has its own issue now: |
Discussed in the Nix team meeting 2023-06-05:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-06-05-nix-team-meeting-minutes-60/28933/1 |
🎉 All dependencies have been resolved ! |
This prevents issues like
NixOS/nixpkgs#156527. Eventually we should do
this in impure mode as well.
Issue #5970.
Depends on #8330