cmd/go: go tool -n
can point to a file that doesn't exist
#72824
Labels
BugReport
Issues describing a possible bug in the Go implementation.
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I was using
go tool -n github.com/iwahbe/helpmakego
in my Makefile to work around #71733 like this:I noticed that sometimes
$(shell ${HELPMAKEGO} ...)
would fail unexpectedly, saying that there was no file at${HELPMAKEGO}
.I can replicate this behavior locally:
You will see that every other time
go tool -n github.com/iwahbe/helpmakego
it points to a file that doesn't exist.What did you see happen?
What did you expect to see?
I expect that any time
go tool -n ...
is run, it will point to a runnable executable.If that isn't true, then
go help tool
should document what conditions are necessary to ensure thatgo tool -n ...
will point to an executable file.The text was updated successfully, but these errors were encountered: