Skip to content

Commit 4f19e63

Browse files
committed
refactor(tests/nixos/s3-binary-cache-store): add --no-link to nix build commands
Prevent creation of result symlinks in all nix build commands by adding the --no-link flag.
1 parent f88c305 commit 4f19e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/nixos/s3-binary-cache-store.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ in
252252
""".format(id=test_id, url=test_url, hash=cache_info_hash)
253253
254254
output = client.succeed(
255-
f"{ENV_WITH_CREDS} nix build --debug --impure --expr '{fetchurl_expr}' 2>&1"
255+
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link --expr '{fetchurl_expr}' 2>&1"
256256
)
257257
258258
# Verify fork behavior
@@ -392,12 +392,12 @@ in
392392
393393
try:
394394
output = client.succeed(
395-
f"{ENV_WITH_CREDS} nix build --debug --impure "
395+
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link "
396396
f"--expr '{concurrent_expr}' --max-jobs 5 2>&1"
397397
)
398398
except:
399399
output = client.fail(
400-
f"{ENV_WITH_CREDS} nix build --debug --impure "
400+
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link "
401401
f"--expr '{concurrent_expr}' --max-jobs 5 2>&1"
402402
)
403403

0 commit comments

Comments
 (0)