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
In general, the go tool operates on packages (directories) rather than individual go files.
While allowed, commands like go build main.go are more of a special case and introduces various issues like golang/go#51279 because it is using a virtual synthesized package.
This action promotes the antipattern of operating on a singular main file by asking for "the path of a build target (a file with a main() function)" as the input to go-build-target. It should ask for a package path instead.
The text was updated successfully, but these errors were encountered:
In general, the
go
tool operates on packages (directories) rather than individual go files.While allowed, commands like
go build main.go
are more of a special case and introduces various issues like golang/go#51279 because it is using a virtual synthesized package.This action promotes the antipattern of operating on a singular main file by asking for "the path of a build target (a file with a
main()
function)" as the input togo-build-target
. It should ask for a package path instead.The text was updated successfully, but these errors were encountered: