ci/parse: fix potential race condition

The parse check runs multiple `nix-instantiate` processes in parallel -
and they can error out with "SQLite database '...' is busy" while
setting up the state directories. This was observed once locally.

Initialising the store should fix this.
This commit is contained in:
Wolfgang Walther
2025-10-18 14:35:51 +02:00
parent 7a8622a0af
commit a2def7f914

View File

@@ -20,6 +20,7 @@ runCommand "nix-parse-${nix.name}"
'' ''
export NIX_STORE_DIR=$TMPDIR/store export NIX_STORE_DIR=$TMPDIR/store
export NIX_STATE_DIR=$TMPDIR/state export NIX_STATE_DIR=$TMPDIR/state
nix-store --init
cd "${nixpkgs}" cd "${nixpkgs}"