Skip to content

Commit 197e42e

Browse files
committed
Fix truncate index check
1 parent a528765 commit 197e42e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix-tools/.buildkite/nix-tools-build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ nix build -f .buildkite/nix2 nix-tools.components.exes --no-link
6868
echo
6969
echo "--- Test index file truncation"
7070

71+
# Build the derivation if it does not exist
72+
nix-build test/truncate-index.nix --no-link \
73+
--arg nix-tools-path ./.buildkite/nix2 \
74+
--argstr index-state "$index_state" \
75+
--argstr hash "$expected_hash" \
76+
-A indexTruncated
77+
78+
# `--check` it as well in case hash exists already, but code no longer works
7179
nix-build --check test/truncate-index.nix --no-link \
7280
--arg nix-tools-path ./.buildkite/nix2 \
7381
--argstr index-state "$index_state" \

0 commit comments

Comments
 (0)