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: go vet -x does not print commands #5676

Closed
gopherbot opened this issue Jun 10, 2013 · 3 comments
Closed

cmd/go: go vet -x does not print commands #5676

gopherbot opened this issue Jun 10, 2013 · 3 comments
Milestone

Comments

@gopherbot
Copy link

by ben.lubar:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. go get code.google.com/p/go.tools/cmd/vet
2. go vet -n
3. go vet -x
4. go vet

What is the expected output?
-n should print instead of running the command. -x should print the command as well as
running it.

What do you see instead?
all three invocations of go vet are identical.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
debian 7 x86_64

Which version are you using?  (run 'go version')
go version devel +c12672b17884 Tue Jun 11 04:58:02 2013 +0800 linux/amd64

Please provide any additional information below.
@robpike
Copy link
Contributor

robpike commented Jun 10, 2013

Comment 1:

It's nothing to do with vet; the same property applies to "go doc".
Plus the issue isn't accurate, at least as I experience it: -n works as advertised, but
-x does not.
Short form: The -x flag does not cause go vet etc. to print the command it runs.

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 2:

Labels changed: added go1.2.

@rsc
Copy link
Contributor

rsc commented Sep 10, 2013

Comment 3:

This issue was closed by revision 7c6db64.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

3 participants