mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Add a test
This commit is contained in:
parent
33852ead6b
commit
757ea70644
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ hash1=$(echo "$json" | jq -r .revision)
|
||||||
echo foo > "$flake1Dir/foo"
|
echo foo > "$flake1Dir/foo"
|
||||||
git -C "$flake1Dir" add $flake1Dir/foo
|
git -C "$flake1Dir" add $flake1Dir/foo
|
||||||
[[ $(nix flake metadata flake1 --json --refresh | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
[[ $(nix flake metadata flake1 --json --refresh | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
||||||
|
[[ "$(nix flake metadata flake1 --json | jq -r .fingerprint)" != null ]]
|
||||||
|
|
||||||
echo -n '# foo' >> "$flake1Dir/flake.nix"
|
echo -n '# foo' >> "$flake1Dir/flake.nix"
|
||||||
flake1OriginalCommit=$(git -C "$flake1Dir" rev-parse HEAD)
|
flake1OriginalCommit=$(git -C "$flake1Dir" rev-parse HEAD)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue