Skip to content
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

promotes antipattern of building individual go files #77

Open
seankhliao opened this issue Nov 14, 2024 · 0 comments
Open

promotes antipattern of building individual go files #77

seankhliao opened this issue Nov 14, 2024 · 0 comments

Comments

@seankhliao
Copy link

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.

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

No branches or pull requests

1 participant