1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-19 16:59:35 +01:00
nix/tests
Bernardo Meurer Costa 53af1119fb
tests: fix fetchers-substitute test for new narHash JSON format
The test was failing because nix path-info --json now returns narHash as
a structured dictionary {"algorithm": "sha256", "format": "base64",
"hash": "..."} instead of an SRI string "sha256-...".

This change was introduced in commit 5e7ee808d. The functional test
path-info.sh was updated at that time, but this NixOS test was missed.

The fix converts the dictionary format to SRI format inline:
  tarball_hash_sri = f"{narHash_obj['algorithm']}-{narHash_obj['hash']}"
2025-11-18 16:36:27 +00:00
..
functional nix flake clone: Support all input types 2025-11-17 19:50:50 +01:00
installer Format .nix files 2025-01-24 17:04:02 +01:00
nixos tests: fix fetchers-substitute test for new narHash JSON format 2025-11-18 16:36:27 +00:00
repl-completion.nix Format .nix files 2025-01-24 17:04:02 +01:00