-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detector/file: pwd symlink should be determined with EvalSymlinks
We were using `ReadLink` before which read the exact link. Unfortunately, we want to evaluate this link relative to the pwd if it is an absolute path otherwise we evaluate the symlink incorrectly. For example, if the pwd is set to "/foo/fake" and the value is "../real", but we're evaluating go-getter from the real shell pwd of "/bar", then we'd turn "/foo/fake" into "/bar/real". The behavior of shells is to take it relative to its location, not your pwd. This preserves that.
- Loading branch information
Showing
4 changed files
with
42 additions
and
11 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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../real |