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
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

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