From 8db9fa116b7332f231cbd0fe8ce74f52b874e5c1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 18 Oct 2025 12:45:22 +0200 Subject: [PATCH] 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. --- ci/nixpkgs-vet.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/nixpkgs-vet.nix b/ci/nixpkgs-vet.nix index 7c11dffc4f9b..6bdf92eedb3f 100644 --- a/ci/nixpkgs-vet.nix +++ b/ci/nixpkgs-vet.nix @@ -32,6 +32,7 @@ runCommand "nixpkgs-vet" } '' export NIX_STATE_DIR=$(mktemp -d) + $NIXPKGS_VET_NIX_PACKAGE/bin/nix-store --init nixpkgs-vet --base ${filteredBase} ${filteredHead}