What's new in this prerelease
Init Hook Improvements
devbox run will no longer re-run init_hooks or attempt to recreate the shell environment if it is already running in a devbox shell environment. Implications of this change are:
- If you start a shell, and then run a script with devbox run, the script will not re-run the init_hook or recreate the environment
- If you run a devbox script inside another devbox script, the init_hook and shell setup will only happen once.
Devbox Global improvements
Devbox Global has been updated to no longer set Nix environment variables or stdenv packages in your global path. This should allow package and tools to work well with Devbox Global, without interfering with the tooling installed on your host
-
Previous versions of Devbox Global would set it's own versions of packages like
gcc
,ld
, andclang
at the top of your global path, which could break system build tools. This version will no longer set those packages in your path -
Previous versions of Devbox Global would set variables like PYTHONPATH, which could override and cause issues with your host Python interpreter or other Python based binaries. This version will no longer set those variables
-
Note: This change may cause certain libraries or packages to stop working with Devbox Global. If you need these packages to continue working, you can add
--omit-nix-env=false
to the invocation in your shellrc:eval "$(devbox global shellenv --init_hooks --omit-nix-env=false)"
Bug Fixes
Fixed a bug where Devbox was improperly trying to tidy the lockfile for flakes.
Changelog
- 1573ae8 [Devbox] introduce devopt.EnvOptions (#2159)
- f0a562e [devbox global] add
--omit-nix-env
flag for shellenv/shell/run commands (#2150) - f44b799 Bump braces from 3.0.2 to 3.0.3 in /docs/app (#2163)
- b98a852 [easy][lock-tidy] Don't tidy flakes (#2162)
- 65d27cf Bump braces from 3.0.2 to 3.0.3 in /vscode-extension (#2145)
- 1b5eafa Update README.md (#2158)