-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
nix-profile: fix both profile links detection #9590
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.
Could you add a test case?
what invokes the tests? |
@wh0 Something like:
|
come to think of it, Nix has already changed to using the new link when both exist, and no one has complained. I'm going to rework this to maintain that logic, only reinstating the both-links-exist diagnostic and updating the wording accordingly to reflect this new behavior. analysis of the timeline:
updated goals:
|
wow is that going to make me recompile the whole project each time I make a change to the test script? I don't think I'm going to be able to do this until a few more iterations of moore's law |
oh phew, it recompiles nix for each of the install tests, but I don't have to rebuild it each time I change a test. added an installer test case with both links present |
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.
This looks good now. Thank you, and sorry for the delay.
no worries, thanks for merging! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-06-03-nix-team-meeting-minutes-149/46582/1 |
Motivation
In #7925, using "new nix link exists" instead of "old nix link doesn't exist" mistakenly made it impossible to trigger the "oh no, both links exist" logic. This restores that.
Context
What I gathered from the discussion in March, pushing harder to use the new link is not a priority. But the logic is here, so I want to let it work.
Priorities
Add 👍 to pull requests you find important.