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: document interaction with test sources #32408
Comments
Does this reproduce for all |
The arguments to
So |
It seems like the underlying problem you're stumbling on here is that the |
Thank you for the fast reply, I have completely missed this detail. |
@bcmills I found this issue while trying to understand what the hell was happening for my project (panicparse). In the end, the issue I was seeing had the following characteristics:
The failure looked like this: https://travis-ci.org/maruel/panicparse/jobs/541748155 on go version go1.12.5 linux/amd64.
After much fiddling, I realized that I was caching the project's directory in travis, and this was somehow causing the problem. Tweaking the cache entry fixed it for me. I'm noting this in case others are experiencing similar issues. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
go vet something_test.go
What did you expect to see?
Successful execution
What did you see instead?
isomething_test.go: undefined: MyModel
even if
MyModel
is defined andgo test
executes successfully.It may be a regression of #26797
The text was updated successfully, but these errors were encountered: