github jetify-com/devbox 0.18.3

4 hours ago

What's Changed

✨ New Features

  • Init hooks in "Reopen in Devbox"devbox integrate vscode gained a --run-init-hook flag that sources your project's init_hook before relaunching the editor, so env vars it exports are present in the reopened window (previously only devbox shell saw them). The VS Code extension (0.1.9) exposes this as an opt-in devbox.runInitHookOnReopen setting; leave it off and older CLIs keep working unchanged. Fixes #2703, by @mikeland73 (#2874, #2975)

🐛 Bug Fixes

  • devbox shellenv no longer re-exports your whole environment — only variables Devbox adds or changes are emitted, so eval "$(devbox global shellenv)" no longer fails on distros with read-only shell variables (e.g. PROFILEREAD on 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 cryptic attribute '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.org no longer fails devbox shell/run outright — narinfo lookup errors are treated as a cache miss and Nix builds or substitutes the package as usual, by @mikeland73 (#2973).
  • devbox services ls now lists services started with --process-compose-file instead of reporting "No services found". Fixes #2611, by @mikeland73 (#2920).
  • Editing a file referenced by a local plugin's create_files now regenerates it on the next devbox shell; the plugin hash includes the file contents, not just plugin.json. Fixes #2755, by @mikeland73 (#2871).
  • devbox generate readme lists scripts in the order they appear in devbox.json instead of alphabetically. Fixes #1991, by @mikeland73 (#2875).
  • Plugin fixes — Poetry: the in-project .venv is activated in the shell, so console scripts installed by poetry install are on PATH again without poetry run (Fixes #2676, #2958). PHP: the plugin references the flake's php output explicitly so it resolves alongside composer (Fixes #2788, #2900). Nginx: mime.types is created next to nginx.conf so the include resolves 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

Don't miss a new devbox release

NewReleases is sending notifications on new releases.