-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shellgen: delete flake.lock if flake.nix changes (#2388)
Fix a bug where `.devbox/gen/flake` gets locked on old versions of `.devbox/gen/flake/glibc-patch` by deleting the `flake.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: 1. Add a package that gets auto-patched (`devbox add [email protected]`). 2. `.devbox/gen/flake` gets locked on the patch flake. 3. Change the patched package (`devbox add [email protected]`). 4. The new patch flake isn't used because of `.devbox/gen/flake/flake.lock`. Instead, the old version is used (from the Nix store). Fixes #2316. Fixes #2370.
- Loading branch information
Showing
3 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters