-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetchzip and friends: Set "name" to "source" by default
This makes them produce the same store paths as builtins.fetchgit, builtins.fetchTarball etc. See NixOS/nix@65b5f17.
- Loading branch information
Showing
3 changed files
with
7 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
c3255fe
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.
Doesn't this invalidate every existing fetch* hash?
c3255fe
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.
At least for me descriptive names in /nix/store are important (for example if I want to look at the sources of a package that I've recently built I just
ls -d /nix/store/*name*
), and independence of the hash from the fetch method is not, although it's nice if it's achievable just by setting a constantname
.c3255fe
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.
It does, here is PR to revert: #31004
c3255fe
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.
Actually it does not: #31004 (comment)