Avoid nix result-* symlinks on CI (#12220)

We really don’t want those anywhere and they currently trip up
blackduck which starts scanning our nix store.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2021-12-21 13:59:02 +01:00 committed by GitHub
parent 830497ae34
commit f847767e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ jobs:
eval "$(dev-env/bin/dade-assist)"
HEAD=$(git rev-parse HEAD)
while ! nix-build -A tools.sed -A tools.jq -A tools.curl -A tools.base64 nix; do :; done
while ! nix-build --no-out-link -A tools.sed -A tools.jq -A tools.curl -A tools.base64 nix; do :; done
trap 'rm -rf ~/.docker' EXIT
echo $DOCKER_PASSWORD | docker login --username $DOCKER_LOGIN --password-stdin

View File

@ -78,7 +78,7 @@ robustly_download_nix_packages :: IO ()
robustly_download_nix_packages = do
h (10 :: Integer)
where
cmd = "nix-build nix -A tools -A ci-cached"
cmd = "nix-build nix -A tools -A ci-cached --no-out-link"
h n = do
(exit, out, err) <- System.readCreateProcessWithExitCode (System.shell cmd) ""
case (exit, n) of

View File

@ -40,7 +40,7 @@ step "Building dev-env dependencies"
NIX_FAILED=0
for i in `seq 10`; do
NIX_FAILED=0
nix-build nix -A tools -A ci-cached 2>&1 | tee nix_log || NIX_FAILED=1
nix-build --no-out-link nix -A tools -A ci-cached 2>&1 | tee nix_log || NIX_FAILED=1
# It should be in the last line but lets use the last 3 and wildcards
# to be robust against slight changes.
if [[ $NIX_FAILED -ne 0 ]] &&

View File

@ -57,7 +57,7 @@ dadeBaseHash() {
# List tools defined in dade
dadeListTools() {
cat $(nix-build $DADE_BASE_ROOT/nix -A dade.tools-list)
cat $(nix-build --no-out-link $DADE_BASE_ROOT/nix -A dade.tools-list)
}
# dadeGetOutput get output of a target