-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Current behavior:
builtins.fetchTarballcurrently names the derivation after the url (words after last slash in the url)builtins.fetchgitcurrently always names the derivationgit-export- Hydra
nix-prefetch-gitcurrently names the derivationgit-export(and has an old standing bug in that script of stripping anything that prefixes on.gitinstead of just.gitfolder, so.gitignorewould also be deleted - nixpkgs
nix-prefetch-gitcurrently names the derivation after url and rev name
All in all, this leads to a lot of frustration since hashes of those derivations will differ. I'll try to fix the Hydra part (and look into since when nix-prefetch-git is crazy).
Mainly, I would hope that fetchTarball and fetchgit can be used interchangeably and it's currently not possible due to different hardcoded names.
cc @ocharles as he mentioned this recently on IRC
cc @edolstra
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels