mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-17 06:59:46 +03:00
update-python-libraries: Reliably detect nix-prefetch-git
Makes sure that any attribute that triggers using fetchGit will result in the updater using nix-prefetch-git.
This commit is contained in:
parent
c4e5920816
commit
27aa2c8a9d
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ def _get_latest_version_github(attr_path, package, extension, current_version, t
|
|||
if _get_attr_value(f"{attr_path}.src.leaveDotGit"):
|
||||
git_fetcher_args.append("--leave-dotGit")
|
||||
|
||||
if git_fetcher_args:
|
||||
if git_fetcher_args or _get_attr_value(f"{attr_path}.src.fetcher").endswith("nix-prefetch-git"):
|
||||
algorithm = "sha256"
|
||||
cmd = [
|
||||
"nix-prefetch-git",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue