Skip to content

Devbox shell PATH should take precedence over existing binaries #17

@methyl

Description

@methyl

Hey!

Just been testing devbox and the experience so far is really smooth. I stumbled upon 3 things that confused me:

  1. devbox add package failed with Package not found until I opened a new terminal. It's kind of documented, but maybe there is a way for a better error? Anyway, that's a nit.
  2. devbox shell first run can take quite some time and there is no progress bar, but we already have First call to devbox shell can take a while #7
  3. Which is this issue really about.

It seems the initial run of devbox shell does not spawn the shell, instead it exists once it completes package initialization. Here's the terminal log that shows the issue:

lucjansuski@MacBook-Pro-3 ~ % cd /tmp
lucjansuski@MacBook-Pro-3 /tmp % mkdir test
lucjansuski@MacBook-Pro-3 /tmp % cd test
lucjansuski@MacBook-Pro-3 test % devbox init
lucjansuski@MacBook-Pro-3 test % devbox add python
lucjansuski@MacBook-Pro-3 test % devbox shell
this path will be fetched (7.93 MiB download, 49.47 MiB unpacked):
  /nix/store/3j1bsklak6p752nhys18n0p9i3grq1bz-python-2.7.18
copying path '/nix/store/3j1bsklak6p752nhys18n0p9i3grq1bz-python-2.7.18' from 'https://cache.nixos.org'...
Starting a devbox shell...
lucjansuski@MacBook-Pro-3 test % which python
/Users/lucjansuski/.asdf/shims/python
lucjansuski@MacBook-Pro-3 test % devbox shell
Starting a devbox shell...
MacBook-Pro-3:test lucjansuski$ which python
/nix/store/3j1bsklak6p752nhys18n0p9i3grq1bz-python-2.7.18/bin/python
MacBook-Pro-3:test lucjansuski$

I'm on macOS Monterey 12.5.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions