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/vet: false negative in vet -shadow #19597

mcandre opened this issue Mar 17, 2017 · 1 comment


None yet
3 participants
Copy link

commented Mar 17, 2017

What version of Go are you using (go version)?

$ go version
go version go1.7 darwin/amd64

What did you do?

go tool vet -shadow finds one shadow for the hash variable, but fails to notice the password shadow.


Perhaps the shadow checker bombs out on the first occurrence, before it has a chance to scan the rest of the file?

@ALTree ALTree changed the title False negative in vet -shadow cmd/vet: false negative in vet -shadow Mar 18, 2017

@ALTree ALTree added this to the Unplanned milestone Mar 18, 2017


This comment has been minimized.

Copy link

commented Mar 18, 2017

The shadow tool is very weak and has many known bugs. I'll leave this open but don't expect a fix. A likelier resolution is a complete replacement of the checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.