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

error: tool 'git' not found after upgrading to 0.14.0 #2517

Open
windybranch opened this issue Feb 16, 2025 · 5 comments
Open

error: tool 'git' not found after upgrading to 0.14.0 #2517

windybranch opened this issue Feb 16, 2025 · 5 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@windybranch
Copy link

windybranch commented Feb 16, 2025

What happened?

Since upgrading to 0.14.0 I seem to be unable to access git inside the devbox shell.

Outside the devbox shell. Running git returns expected output:

usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [--super-prefix=<path>] [--config-env=<name>=<envvar>]
           <command> [<args>]

...

Then after running devbox shell, git returns:

error: tool 'git' not found
  • I've checked this in a new directory after just running devbox init as a blank canvas
  • I've tried commenting out my .zshrc to see if that could be interfering and makes no difference
  • I've rolled back to the previous version using export DEVBOX_USE_VERSION=0.13.7
    and git works fine

Not sure if anyone else is experiencing this?

Steps to reproduce

  1. Make a new directory
  2. devbox init
  3. devbox shell
  4. git

Command

No response

devbox.json

{
  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.13.0/.schema/devbox.schema.json",
  "packages": [],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.14.0

Nix version

nix (Nix) 2.24.7

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

@windybranch windybranch added bug Something isn't working triage Issue needs triage labels Feb 16, 2025
@bmritz
Copy link

bmritz commented Feb 17, 2025

FWIW, I had this issue too, so you're not unique. export DEVBOX_USE_VERSION=0.13.7 did seem to fix the issue on one repo I tried it on.

@dax
Copy link

dax commented Feb 18, 2025

On our repository, running xcodebuild ended up in some kind of a fork bomb:

   \-+= 08074 david.rousselie /nix/store/ca250dchzidqi7a97zf3ldn1abcry2qy-apple-sdk-11.3/usr/bin/xcrun xcodebuild -version
       \-+- 08077 david.rousselie /nix/store/ca250dchzidqi7a97zf3ldn1abcry2qy-apple-sdk-11.3/usr/bin/xcrun xcodebuild -version
         \-+- 08080 david.rousselie /nix/store/ca250dchzidqi7a97zf3ldn1abcry2qy-apple-sdk-11.3/usr/bin/xcrun xcodebuild -version
           \-+- 08083 david.rousselie /nix/store/ca250dchzidqi7a97zf3ldn1abcry2qy-apple-sdk-11.3/usr/bin/xcrun xcodebuild -version
             \-+- 08086 david.rousselie /nix/store/ca250dchzidqi7a97zf3ldn1abcry2qy-apple-sdk-11.3/usr/bin/xcrun xcodebuild -version
...

@bmritz
Copy link

bmritz commented Feb 21, 2025

Check out this comment on a related issue: #2531 (comment)

@windybranch
Copy link
Author

Check out this comment on a related issue: #2531 (comment)

Thanks @bmritz ! This seems to have worked as a fix:

sudo xcode-select --reset
sudo xcode-select --switch /Library/Developer/CommandLineTools

@bmritz
Copy link

bmritz commented Feb 24, 2025

Check out this comment on a related issue: #2531 (comment)

Thanks @bmritz ! This seems to have worked as a fix:

sudo xcode-select --reset
sudo xcode-select --switch /Library/Developer/CommandLineTools

@windybranch great to hear -- I hadn't actually tried the fix until today, but it worked for me as well.

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