Closed gcurtis closed 3 weeks ago
Fix a bug where .devbox/gen/flake gets locked on old versions of .devbox/gen/flake/glibc-patch by deleting the flake.lock file.
.devbox/gen/flake
.devbox/gen/flake/glibc-patch
flake.lock
We only delete the lock file when the generated flake changes so that Nix isn't forced to re-evaluate it every time.
The repro steps are:
devbox add python@3.11.9
devbox add python@3.11.10
.devbox/gen/flake/flake.lock
Fixes #2316. Fixes #2370.
Fix a bug where
.devbox/gen/flake
gets locked on old versions of.devbox/gen/flake/glibc-patch
by deleting theflake.lock
file.We only delete the lock file when the generated flake changes so that Nix isn't forced to re-evaluate it every time.
The repro steps are:
devbox add python@3.11.9
)..devbox/gen/flake
gets locked on the patch flake.devbox add python@3.11.10
)..devbox/gen/flake/flake.lock
. Instead, the old version is used (from the Nix store).Fixes #2316. Fixes #2370.