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
[flakes] explain better nixpkgs prefetch during devbox add (#624)
## Summary
Previously, we'd always have an explicit numbered step for `nixpkgs`
when doing
`devbox add`. This would look odd like:
```
> devbox add emacs
[1/2] nixpkgs registry
...
[1/2] nixpkgs registry: Success
[2/2] emacs
...
[2/2] emacs: Success
```
I couldn't find a way to inspect local nix store to determine if we need
to prefetch nixpkgs or not.
So, we continue to always do `nix flakes prefetch nixpkgs/<commit>`.
But to make the UX more understandable, I pull it out into its own
function with its own print statements.
IMO this is an improvement but still not awesome. We can continue
iterating on it.
## How was it tested?
First run (packages not previously present):
<img width="1031" alt="Screenshot 2023-02-10 at 3 19 52 PM"
src="https://user-images.githubusercontent.com/676452/218221476-5c2250f5-0648-411e-8b6d-01a605d0ee3f.png">
Second run:
<img width="984" alt="Screenshot 2023-02-10 at 3 20 30 PM"
src="https://user-images.githubusercontent.com/676452/218221528-d7a1a87e-81f0-427a-9dc3-f638b13f3127.png">
0 commit comments