Skip to content

Fix determining the current executable under Homebrew for Linux#5822

Merged
mislav merged 1 commit intotrunkfrom
fix-find-executable
Jun 21, 2022
Merged

Fix determining the current executable under Homebrew for Linux#5822
mislav merged 1 commit intotrunkfrom
fix-find-executable

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Jun 20, 2022

We need to use os.Lstat instead of os.Stat if we are going to manually inspect files for whether they are a symlink. On macOS, it looks like os.Stat returns information about the symlink itself. I was wrong, or os.Stat used to work differently in older versions of Go.

Fixes #5428
Followup to #4243

We need to use `os.Lstat` instead of `os.Stat` if we are going to
manually inspect files for whether they are a symlink. On macOS, it
looks like `os.Stat` returns information about the symlink itself.
@mislav mislav requested a review from a team as a code owner June 20, 2022 13:29
@mislav mislav requested review from samcoe and removed request for a team June 20, 2022 13:29
@mislav mislav merged commit 14a9af8 into trunk Jun 21, 2022
@mislav mislav deleted the fix-find-executable branch June 21, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh still looking for 2.6.0 after upgrade to 2.7.0 (brew)

2 participants