From 3dd14d8a5176e7a790e6eeeab7bfebd49c4b8eab Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 2 Jun 2025 15:50:32 +0200 Subject: [PATCH] ci/nixpkgs-vet: fix random errors Every now and then, the nixpkgs-vet CI job currently fails with one of: error: creating symlink '/build/.local/share/nix/root/nix/var/nix/gcroots/profiles' -> '/build/.local/share/nix/root/nix/var/nix/profiles': File exists error: SQLite database '/build/.local/share/nix/root/nix/var/nix/db/db.sqlite' is busy It's hard to reproduce for me, so just taking a guess with the required changes. --- ci/nixpkgs-vet.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/nixpkgs-vet.nix b/ci/nixpkgs-vet.nix index 1ceec363c347..ccc5ba289dcf 100644 --- a/ci/nixpkgs-vet.nix +++ b/ci/nixpkgs-vet.nix @@ -25,6 +25,8 @@ runCommand "nixpkgs-vet" env.NIXPKGS_VET_NIX_PACKAGE = nix; } '' + export NIX_STATE_DIR=$(mktemp -d) + nixpkgs-vet --base ${filtered base} ${filtered head} touch $out