You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running go build -o /dev/null hello.go creates the executable hello. go build -o x hello.go works as expected.
> rm ./hello
rm: cannot remove './hello': No such file or directory
> go build -o x ~/hello.go
> ls -l x hello
ls: cannot access 'hello': No such file or directory
-rwxr-x--- 1 iant primarygroup 2651894 May 25 13:58 x*
> rm ./x
> go build -o /dev/null ~/hello.go
> ls -l hello
-rwxr-x--- 1 iant primarygroup 2651894 May 25 13:58 hello*
The text was updated successfully, but these errors were encountered:
This happens with Go 1.10, does not happen with Go 1.9.
It seems to be because runBuild clears cfg.BuildO when it is /dev/null, and then GoFilesPackage sets it back to the base name of the first file on the command line.
On current tip (1ba26a3).
Running
go build -o /dev/null hello.go
creates the executablehello
.go build -o x hello.go
works as expected.The text was updated successfully, but these errors were encountered: