mirror of
https://github.com/nix-community/naersk
synced 2024-11-10 06:04:17 +00:00
force fetchGit allRefs when a dependency is specified with "rev"
The usage of git "rev" dependencies in Cargo implies that the rev will be found regardless of ref. This is currently not true in naersk; the following dependency fails: usbfs = {git = "https://github.com/goertzenator/usbfs-rs", rev = "7c35b46e41ad76f838cd99b493f9337f475b5b70"}
This commit is contained in:
parent
14997a79cd
commit
e300ddf8cb
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
@ -111,7 +111,7 @@ rec
|
|||
ref = lock.branch;
|
||||
} // lib.optionalAttrs (lock ? tag) {
|
||||
ref = lock.tag;
|
||||
} // lib.optionalAttrs gitAllRefs {
|
||||
} // lib.optionalAttrs (gitAllRefs || lock ? rev) {
|
||||
allRefs = true;
|
||||
} // lib.optionalAttrs gitSubmodules {
|
||||
submodules = true;
|
||||
|
|
Loading…
Reference in a new issue