-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Labels
Description
What happened?
When I create a new devbox project and run the shell, the init_hook script is ignored.
Steps to reproduce
initialize a new project
devbox init
you can see the devbox.json file created by default has a init_hook defined:
cat devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.15.0/.schema/devbox.schema.json",
"packages": [],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
runninn shell the script is never executed
$ devbox shell
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Starting a devbox shell...
Command
shell
devbox.json
Devbox version
0.15.0
Nix version
nix (Nix) 2.30.2
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response