1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

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.
This commit is contained in:
Bernardo Meurer Costa 2025-10-18 23:44:10 +00:00
parent f88c3055f8
commit 4f19e63a8f
No known key found for this signature in database

View file

@ -252,7 +252,7 @@ in
""".format(id=test_id, url=test_url, hash=cache_info_hash)
output = client.succeed(
f"{ENV_WITH_CREDS} nix build --debug --impure --expr '{fetchurl_expr}' 2>&1"
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link --expr '{fetchurl_expr}' 2>&1"
)
# Verify fork behavior
@ -392,12 +392,12 @@ in
try:
output = client.succeed(
f"{ENV_WITH_CREDS} nix build --debug --impure "
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link "
f"--expr '{concurrent_expr}' --max-jobs 5 2>&1"
)
except:
output = client.fail(
f"{ENV_WITH_CREDS} nix build --debug --impure "
f"{ENV_WITH_CREDS} nix build --debug --impure --no-link "
f"--expr '{concurrent_expr}' --max-jobs 5 2>&1"
)