ci/nixpkgs-vet: try to fix race

This is another attempt at fixing the annoying nixpkgs-vet errors in CI,
which just throw with `error: SQLite database '...' is busy`.

The assumption is that this happens while initially setting up the state
directories. nixpkgs-vet runs `nix-instantiate` on both the base and the
head commit and these two could interfere.
This commit is contained in:
Wolfgang Walther 2025-10-18 12:45:22 +02:00
parent 070cc2146c
commit 8db9fa116b
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -32,6 +32,7 @@ runCommand "nixpkgs-vet"
} }
'' ''
export NIX_STATE_DIR=$(mktemp -d) export NIX_STATE_DIR=$(mktemp -d)
$NIXPKGS_VET_NIX_PACKAGE/bin/nix-store --init
nixpkgs-vet --base ${filteredBase} ${filteredHead} nixpkgs-vet --base ${filteredBase} ${filteredHead}