You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug fix: FillNarInfoCache for versioned packages when adding package (#1437)
## Summary
The call to `versionedPkg.ValidateExists()` would error because the
NarInfoCache
was not pre-filled before we called `IsInBinaryCache` in it.
Now, we call FillNarInfoCache on the versioned packages as well.
Did some minor refactoring so that we only do FillNarInfoCache for
packages that
are to-be-added (thereby omitting existing packages) to be just a bit
efficient.
## How was it tested?
```
export DEVBOX_FEATURE_REMOVE_NIXPKGS=1
devbox add vim
# BEFORE: this would add `vim` to devbox.json
# AFTER: this adds `vim@latest` to devbox.json
```
0 commit comments