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
[direnv] Fixed .envrc file to emulate nix-shell env (#453)
## Summary
Changed the generated `.envrc` file to this logic:
if `.devbox/gen/shell.nix` exists -> use direnv's `use nix` function to
set the environment. Otherwise just watch `devbox.json` and activate
direnv.
## How was it tested?
- compile
- run `./devbox init` and answer "y" to the prompt (requires direnv to
be installed)
- confirm there is no error and a `.envrc` file is created
- run `./devbox add go_1_18`
- run `which go` and confirm it points to nix store without any reload
required
0 commit comments