You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[bug] Added abs path ref. to devbox binary in wrappers (#1260)
## Summary
This fixes an issue where if you install `coreutils` devbox shell in
some cases gets stuck in infinite loop due this sequence of events:
1. devbox shell creates wrappers
2. wrappers try to omit wrappers from PATH and call devbox shellenv but
it's unsuccessful
3. devbox call in wrappers uses a couple of util tools (like `tr`) that
now have their own wrappers because of coreutils.
4. the process is never able to skip the wrappers hence showing `fork:
Resource Temporarily Unavailable`
I think it addresses #881 or at least a portion of it.
The fix:
in step 3 instead of calling devbox (launcher script in /usr/local/bin)
we get the absolute path to the devbox binary and reference that
directly in wrappers script.
This way the launcher script is not called more than once and avoids
getting stuck in infinite loop.
## How was it tested?
- compile -> compiled binary is now in <path to devbox>/dist/devbox
- update line 413 of launcher (/usr/local/devbox) to `local -r
bin="<path to devbox>/dist/devbox"`
- in an empty directory run devbox init
- add `coreutils@latest` to devbox.json
- run `devbox shell`
0 commit comments