github cachix/devenv v2.0.5

10 hours ago

Improvements

  • Show a quit prompt on first Ctrl+C in the TUI instead of immediately terminating (#2607).
  • Patched Nix to avoid hitting GitHub rate limits when fetching flake inputs (upstreamed as NixOS/nix#15470).
  • Improved eval performance by caching the initial Nix Value, avoiding re-evaluation of nixpkgs and the module system on subsequent attribute lookups (~2x time-to-shell improvement).
  • devenv-run-tests: --only and --exclude now support glob patterns (e.g. --only 'python-*').

Bug Fixes

  • Fixed devenv test not running enterTest tasks (e.g., git-hooks:run) in devenv 2.0+. Also: devenv test now fails early when enterTest tasks fail, and skips redundant load_tasks() when tasks are already handled.
  • Fixed file watcher dropping change events during the initial bootstrap file flood by switching from try_send to backpressure, which caused devenv.nix changes to go undetected during hot reload.
  • Fixed exec_if_modified performance when negation patterns were used, avoiding a full walk of the parent directory for literal file paths.
  • Fixed child processes (postgres, redis, etc.) being left running after devenv up exits or devenv processes down is called. The native manager wrapper now forwards TERM/INT signals to the child process group, and the process-compose backend creates a proper process group for signaling (#2619).
  • Fixed secretspec prompting for secrets in non-interactive contexts like direnv.
  • Fixed devenv search showing truncated package names (e.g. pkgs. instead of pkgs.ncdu).
  • Fixed runtime directory path (devenv-<hash>) being inconsistent on macOS when paths contain symlinks (e.g. /tmp vs /private/tmp), which could cause processes to look for sockets in the wrong directory.
  • Fixed TUI hanging when the backend encounters an error in the PTY shell path (e.g. Nix evaluation failure).
  • Fixed nix run trying to run devenv-wrapped which doesn't exist.
  • Fixed in-band resize events being sent to the shell when the app did not opt-in to receiving them.
  • Fixed a packaging error in nixpkgs that resulted in the macOS builds of devenv to include two conflicting copies of the Boehm GC (#2552, #2576).
  • Fixed devenv init, devenv test, and secretspec hint messages being silently dropped due to missing user-message marker.

Don't miss a new devenv release

NewReleases is sending notifications on new releases.