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
I get a papercut on first time use of projects using devbox's env_from where the typically untracked file doesn't exist, and due to this devbox will exit early. This can be frustrating as it doesn't provide the chance to ensure this file exists with a script in the init_hook. I understand that parsing env_from prior to executing the scripts in init_hook is required, but I would expect that if the files referenced by env_from do not exist devbox might print a warning, and continue setting up the environment.
What happened?
I get a papercut on first time use of projects using devbox's
env_from
where the typically untracked file doesn't exist, and due to this devbox will exit early. This can be frustrating as it doesn't provide the chance to ensure this file exists with a script in theinit_hook
. I understand that parsingenv_from
prior to executing the scripts ininit_hook
is required, but I would expect that if the files referenced byenv_from
do not exist devbox might print a warning, and continue setting up the environment.Steps to reproduce
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json",
"env_from": ".private.env",
"shell": {
"init_hook": "cp -n .private.example .private.env"
}
}' > devbox.json
Results in the below
Command
shell
devbox.json
Devbox version
0.13.7
Nix version
nix (Nix) 2.24.10
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response
The text was updated successfully, but these errors were encountered: