-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bin wrappers] Fixes: don't export PATH, and eval the symlink of the …
…binary (#1330) ## Summary This PR tries to address some concerns with #1324. 1. We drop `export` from `PATH` in the bin-wrappers. This would have modified PATH for all child programs, which we need not do. 2. When creating the symlink, we ensure the target value is passed through `EvalSymlink`. Previously, it was set as the result of `os.Executable`, which may still have been a symlink. ## How was it tested? did a basic sanity test of opening a devbox shell in a golang project
- Loading branch information
Showing
3 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters