Closed dax closed 4 months ago
would you mind also running devbox run lint
to ensure the code is considered "clean"?
devbox run fmt
should help with formatting concerns
Would you wanna make that change?
Thank you @savil for the suggestion. I'll push an update soon (and run the linter and formatter 😄 )
@savil The PR is now ready 🙏
Thanks @mikeland73 for spotting the regression 🙏 I guess I can close this PR as @savil now have submitted a cleaner one 🙏
Summary
(related issue) When used with direnv and when regularly switching between branches, Devbox slows down the workflow because it tries to keep the packages in sync with the devbox.lock state with a Ensuring packages are installed. This PR add the
--recompute
flag to theshellenv
command that allow to set it to--recompute=false
and then disable the automatic installation of package in casedevbox.json
is out of sync.How was it tested?
Setting the
.envrc
(ie. the direnv config file) as:--install
has been removed and--recompute=false
compared with whatdevbox generate direnv --print-envrc
generate by default.Then updating
devbox.json
does not trigger package installation or removal but the context (ie. the env vars) are correctly updated.