What's Changed
✨ New Features
- Init hooks in "Reopen in Devbox" —
devbox integrate vscodegained a--run-init-hookflag that sources your project'sinit_hookbefore relaunching the editor, so env vars it exports are present in the reopened window (previously onlydevbox shellsaw them). The VS Code extension (0.1.9) exposes this as an opt-indevbox.runInitHookOnReopensetting; leave it off and older CLIs keep working unchanged. Fixes #2703, by @mikeland73 (#2874, #2975)
🐛 Bug Fixes
devbox shellenvno longer re-exports your whole environment — only variables Devbox adds or changes are emitted, soeval "$(devbox global shellenv)"no longer fails on distros with read-only shell variables (e.g.PROFILEREADon openSUSE). Fixes #2826, by @mikeland73 (#2894)- Nix is detected even when it isn't on
$PATH— NixOS and fish users no longer hit "nix binary is not in your PATH" when Nix is installed at a known location; detection now uses the same lookup Devbox already used to run Nix. Fixes #2787, by @mikeland73 (#2903) - Clear error on Lix ≥ 2.95 — Lix removed
builtins.fetchClosure, which Devbox needs for binary-cache installs. Instead of a crypticattribute 'fetchClosure' missing, Devbox now says it's incompatible and points you at upstream Nix. Fixes #2946, by @mikeland73 (#2949) - A slow or unreachable
cache.nixos.orgno longer failsdevbox shell/runoutright — narinfo lookup errors are treated as a cache miss and Nix builds or substitutes the package as usual, by @mikeland73 (#2973). devbox services lsnow lists services started with--process-compose-fileinstead of reporting "No services found". Fixes #2611, by @mikeland73 (#2920).- Editing a file referenced by a local plugin's
create_filesnow regenerates it on the nextdevbox shell; the plugin hash includes the file contents, not justplugin.json. Fixes #2755, by @mikeland73 (#2871). devbox generate readmelists scripts in the order they appear indevbox.jsoninstead of alphabetically. Fixes #1991, by @mikeland73 (#2875).- Plugin fixes — Poetry: the in-project
.venvis activated in the shell, so console scripts installed bypoetry installare onPATHagain withoutpoetry run(Fixes #2676, #2958). PHP: the plugin references the flake'sphpoutput explicitly so it resolves alongsidecomposer(Fixes #2788, #2900). Nginx:mime.typesis created next tonginx.confso theincluderesolves and nginx starts (Fixes #2908, #2929). All by @mikeland73.
🧹 Maintenance
- Dependency security updates: Go modules (#2977), the VS Code extension (#2978, #2980), and the example projects (#2979), by @mikeland73.
- Devbox packages refreshed across all projects (#2974), golangci-lint bumped to v2.13.2 (#2976), and explicit permissions added to the release and stale workflows (#2981), by @mikeland73.
Full Changelog: 0.18.2...0.18.3