mirror of
https://github.com/NixOS/nix
synced 2025-07-02 05:11:47 +02:00
Compute NAR hash for Git archive flakes if --no-trust-tarballs-from-git-forges
This commit is contained in:
parent
2890a2e25d
commit
3432184136
2 changed files with 8 additions and 1 deletions
|
@ -205,7 +205,7 @@ in
|
|||
cat_log()
|
||||
|
||||
# ... otherwise it should use the API
|
||||
out = client.succeed("nix flake metadata private-flake --json --access-tokens github.com=ghp_000000000000000000000000000000000000 --tarball-ttl 0")
|
||||
out = client.succeed("nix flake metadata private-flake --json --access-tokens github.com=ghp_000000000000000000000000000000000000 --tarball-ttl 0 --no-trust-tarballs-from-git-forges")
|
||||
print(out)
|
||||
info = json.loads(out)
|
||||
assert info["revision"] == "${private-flake-rev}", f"revision mismatch: {info['revision']} != ${private-flake-rev}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue