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

cmd/go: should allow vet's own flags to be passed to it. #19349

Closed
robpike opened this issue Mar 1, 2017 · 1 comment
Closed

cmd/go: should allow vet's own flags to be passed to it. #19349

robpike opened this issue Mar 1, 2017 · 1 comment

Comments

@robpike
Copy link
Contributor

robpike commented Mar 1, 2017

Currently the docs say (and the code agrees):

To run the vet tool with specific options, run 'go tool vet'.

This means that the careful argument construction that the go tool does, which takes into effect things like cgo, cannot be applied easily if one wants a special vet flag.

I propose to fix go vet to be more like go test, passing vet's own flags through. This will require a little code copying but shouldn't be too hard.

@robpike
Copy link
Contributor Author

robpike commented Mar 1, 2017

Switched to a proposal under a different issue number.

@robpike robpike closed this as completed Mar 1, 2017
@golang golang locked and limited conversation to collaborators Mar 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants