-
Notifications
You must be signed in to change notification settings - Fork 18.4k
os: do not use procfs for os.Executable in dragonfly #36826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 851c4e4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/216622 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 1: (2 comments) This will be for 1.15. Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Antonio Huete Jimenez: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Antonio Huete Jimenez: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
851c4e4
to
d6b2146
Compare
Message from Ian Lance Taylor: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
This PR (HEAD: d6b2146) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/216622 to see it. Tip: You can toggle comments from me using the |
Message from Antonio Huete Jimenez: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Ian Lance Taylor: Patch Set 3: (1 comment) Thanks, looks reasonable. Leaving for 1.15. Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
d6b2146
to
b85c923
Compare
This PR (HEAD: b85c923) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/216622 to see it. Tip: You can toggle comments from me using the |
Message from Antonio Huete Jimenez: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Ian Lance Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi
This comment has been minimized.
This comment has been minimized.
Message from Tobias Klauser: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Antonio Huete Jimenez: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Antonio Huete Jimenez: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
procfs(5) is not always mounted in DragonFly BSD, for example during the binary package build with synth. os.Executable() consumers will then fail, we've spotted this when trying to build tinygo: [...] copying source files ./build/tinygo build-builtins -target=armv6m-none-eabi [...] panic: could not get executable path: readlink /proc/curproc/file: no such file or directory [...] Use KERN_PROC_PATHNAME as FreeBSD does.
b85c923
to
083120a
Compare
This PR (HEAD: 083120a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/216622 to see it. Tip: You can toggle comments from me using the |
Message from Antonio Huete Jimenez: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Tobias Klauser: Patch Set 5: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Go Bot: Patch Set 5: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=a8432d35 Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Go Bot: Patch Set 5: TryBot-Result+1 SlowBots are happy.
Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
Message from Tobias Klauser: Patch Set 5: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/216622. |
procfs(5) is not always mounted in DragonFly BSD, for example during the binary package build with synth. os.Executable() consumers will then fail, we've spotted this when trying to build tinygo: [...] copying source files ./build/tinygo build-builtins -target=armv6m-none-eabi [...] panic: could not get executable path: readlink /proc/curproc/file: no such file or directory [...] Use KERN_PROC_PATHNAME as FreeBSD does. Change-Id: Ic65bea02cd0309fb24dec8ba8d2b151d1acde67b GitHub-Last-Rev: 083120a GitHub-Pull-Request: #36826 Reviewed-on: https://go-review.googlesource.com/c/go/+/216622 Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Trust: Brad Fitzpatrick <[email protected]>
This PR is being closed because golang.org/cl/216622 has been merged. |
procfs(5) is not always mounted in DragonFly BSD, for example during
the binary package build with synth. os.Executable() consumers
will then fail, we've spotted this when trying to build tinygo:
Use KERN_PROC_PATHNAME as FreeBSD does.