add missing lock around "flake" "lock"

This commit is contained in:
Jörg Thalheim
2025-03-25 18:23:05 +01:00
parent 28dd54d866
commit 5c08e9a38d

View File

@@ -294,18 +294,19 @@ def create_flake(
if tmp_store := nix_test_store():
nix_options += ["--store", str(tmp_store)]
sp.run(
[
"nix",
"flake",
"lock",
flake,
"--extra-experimental-features",
"nix-command flakes",
*nix_options,
],
check=True,
)
with locked_open(Path(lock_nix), "w"):
sp.run(
[
"nix",
"flake",
"lock",
flake,
"--extra-experimental-features",
"nix-command flakes",
*nix_options,
],
check=True,
)
if "/tmp" not in str(os.environ.get("HOME")):
log.warning(