python3: set an explicit high priority#126038
Closed
ianthehenry wants to merge 1 commit intoNixOS:masterfrom
ianthehenry:python3-priority
Closed
python3: set an explicit high priority#126038ianthehenry wants to merge 1 commit intoNixOS:masterfrom ianthehenry:python3-priority
ianthehenry wants to merge 1 commit intoNixOS:masterfrom
ianthehenry:python3-priority
Conversation
Currently there are multiple derivations named python3, none of which have an explicit meta.priority. This means that nix-env -i python3 will give a different result than nix-env -iA nixpkgs.python3, and nix-env -u is not useful when you have nixpkgs.python3 installed. So we explicitly raise the priority of nixpkgs.python3, so that nix-env -i python3 will no longer try to install an alpha version of python3 just because it has a higher version number.
|
Result of 14 packages built successfully:
Result of 1 package built successfully:
|
Member
|
I don't think we should be doing this. Yes, it resolves the issue for |
Author
|
After looking through other derivations with the same problem, I have to agree. I happened to run into the issue with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently there are multiple derivations named
python3, none of which have an explicitmeta.priority. This means thatnix-env -i python3will give a different result thannix-env -iA nixpkgs.python3, andnix-env -uis not useful when you havenixpkgs.python3installed.So we explicitly raise the priority of
nixpkgs.python3, so thatnix-env -i python3will no longer try to install an alpha version of python3 just because it has a higher version number.Motivation for this change
Fixes #126036
Things done
I verified this change by using
nix-env -qa:Which does not include
python3because it's identical tosourcehut.python3, but can be confirmed separately: