mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-07 23:04:00 +01:00
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:
parent
7a8622a0af
commit
a2def7f914
1 changed files with 1 additions and 0 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue