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:
@@ -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}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user