Commit 0ff66c1
authored
[lockfile] Fix tidy for non-versioned packages (#2313)
## Summary
Fixes issue introduced in #2277
This comment explains it pretty well:
https://github.com/jetify-com/devbox/pull/2277/files#r1767085866
except:
> I think this doesn't matter in practice, because we always append
@latest during devbox add <name>.
This is not 100% true. In the very small number of packages that are not
in nixhub but are valid attribute paths, (e.g. `stdenv.cc.cc.lib`) we
store the key in the lockfile without `@latest` :(. The key missmatch
caused lockfile.Tidy to remove entries.
My bad for making the suggestion that lead to this, this was really
subtle difference.
## How was it tested?
Added `stdenv.cc.cc.lib` on devbox.json linux only, installed on linux
and copied over lockfile to macos. Did `devbox install` and ensured
lockfile was not modified.1 parent f66f7a9 commit 0ff66c1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | | - | |
| 856 | + | |
| 857 | + | |
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
| |||
0 commit comments