Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devbox 0.14 breaks zsh global shellenv command #2530

Open
gcv opened this issue Feb 19, 2025 · 1 comment
Open

Devbox 0.14 breaks zsh global shellenv command #2530

gcv opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working triage Issue needs triage

Comments

@gcv
Copy link

gcv commented Feb 19, 2025

What happened?

With devbox 0.13.7, devbox global shellenv works fine on zsh. With 0.14, it breaks:

$ ~/.cache/devbox/bin/0.14.0_linux_amd64/devbox global shellenv

Error: We found a /nix directory but nix binary is not in your PATH and we were not able to find it in the usual locations. Your nix installation might be broken. If restarting your terminal or reinstalling nix doesn't work, please create an issue at https://github.com/jetify-com/devbox/issues

$ ~/.cache/devbox/bin/0.13.7_linux_amd64/devbox global shellenv
export COLORTERM=…
# many lines of output snipped

Nix is installed using the Determinate Nix installer. The Nix binary is available at /nix/var/nix/profiles/default/bin/nix. Devbox has no problem finding it with bash, but fails to find it with zsh.

I’ve worked around this by putting a symlink /nix/var/nix/profiles/default/bin/nix in my path, but it’s unclear why this fails on zsh.

Steps to reproduce

  1. Use Devbox 0.14.
  2. /usr/bin/zsh (or whatever)
  3. devbox global shellenv

blows up

Command

global

devbox.json

Devbox version

0.14.0

Nix version

nix (Nix) 2.24.10

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

@gcv gcv added bug Something isn't working triage Issue needs triage labels Feb 19, 2025
@gcurtis gcurtis self-assigned this Feb 19, 2025
@drcongo
Copy link

drcongo commented Feb 27, 2025

I have a coworker hitting the same problem in Fish shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

3 participants