-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: heisen-dependency on google.golang.org/appengine #33151
Comments
Neat bug. Still don't know what's going on, but thanks for the clear steps to reproduce! CC @jayconrod |
This also reproduces with
|
Here's a more minimal reproducer:
Also works if I rename the main module to |
I have a different project (which, unfortunately, I cannot share) where the bug also manifests. It uses |
Yes, the core of the problem is definitely deep in the graph.
package imports
import (
_ "github.com/smartystreets/goconvey"
_ "go.opencensus.io"
) |
This is probably a duplicate of #31248. |
It's not an exact repro, but I think I have a case that essentially boils down to the same underlying problem.
This lists package |
Change https://golang.org/cl/186537 mentions this issue: |
Change https://golang.org/cl/186557 mentions this issue: |
Duplicate of #31248 |
What version of Go are you using (
go version
)?I've also partially tested go1.13. The build didn't succeed (because of golang/xerrors#2) but the bug shown up either way.
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?
To test Go 1.13 use
misc/go1.13
branch.What did you expect to see?
go build
should not pull in dependencies intogo.mod
thatgo mod tidy
latter removes.What did you see instead?
google.golang.org/appengine
is pulled in bygo build
and removed bygo mod tidy
.go mod why -m google.golang.org/appengine
returnsUnfortunately I was not able to isolate this to one package.
The text was updated successfully, but these errors were encountered: