Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/stringer: cannot import vendored dependencies #21387
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
We're running into this issue as well. It only manifests under Go 1.8, as can be seen here: https://travis-ci.org/stripe/veneur/builds/278659663. It's reproducible locally by changing the Dockerfile in the corresponding pull request to use Go 1.8 instead of Go 1.9. It happens even if the package that it can't find (in this case,
The stringer importer uses the default Go importer for 1.8, but not for 1.9.
I tried to take a stab at fixing this in
This problem was fixed in Go 1.10, but it was reintroduced recently. I'm pretty sure the commit which introduced it was golang/tools@ffe8890, which reverts CL 40403.
I can't comment on that issue because it was originally locked due to age - it was reopened two days ago, but it's still limited to collaborators.