You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go get -d github.com/operator-framework/operator-sdk
$ cd$GOPATH/src/github.com/operator-framework/operator-sdk
$ GO111MODULE=on go mod vendor
What did you expect to see?
go mod vendor does not treat bitbucket.org/ww/goautoneg as a module.
What did you see instead?
$ GO111MODULE=on go mod vendor...go: finding gopkg.in/natefinch/lumberjack.v2 v2.0.0-20170531160350-a96e63847dc3go: finding k8s.io/kubernetes v1.11.7-beta.0.0.20181219023948-b875d52ea96dgo: bitbucket.org/ww/goautoneg@v0.0.0-20120707110453-75cd24fc2f2c: hg clone -U https://bitbucket.org/ww/goautoneg . in /home/estroz/go/pkg/mod/cache/vcs/59c2185b80ea440a7c3b8c5eff3d8abb68c53dea1f20f615370c924c4150b27f: exec: "hg": executable file not found in $PATHgo: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225go: finding github.com/ugorji/go v1.1.1...
$ grep -R 'goautoneg' vendor/vendor/modules.txt:github.com/prometheus/common/internal/bitbucket.org/ww/goautonegvendor/github.com/prometheus/common/expfmt/encode.go: "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg"vendor/github.com/prometheus/common/expfmt/encode.go: for _, ac := range goautoneg.ParseAccept(h.Get(hdrAccept)) {vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/README.txt:package goautonegvendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/README.txt:import "bitbucket.org/ww/goautoneg"vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go:package goautonegvendor/go.opencensus.io/Gopkg.lock: "internal/bitbucket.org/ww/goautoneg",
Per the grep output, any module that imports goautoneg does so through an internal directory.
The text was updated successfully, but these errors were encountered:
The module bitbucket.org/ww/goautoneg is actually required, not from github.com/prometheus/common. The Go command isn't adequately explaining why it's getting pulled in though.
I'm working on a patch to improve error output in cases like this. With CL 166984 (fixing #30661), here's the output:
go: github.com/operator-framework/operator-lifecycle-manager@v0.0.0-20190128024246-5eb7ae5bdb7a
-> github.com/operator-framework/operator-registry@v1.0.4
-> github.com/operator-framework/operator-lifecycle-manager@v0.0.0-20190105193533-81104ffdc4fb
-> bitbucket.org/ww/goautoneg@v0.0.0-20120707110453-75cd24fc2f2c: hg clone -U https://bitbucket.org/ww/goautoneg . in /var/folders/rq/x0692kqj6ml8cvrhcqh5bswc008xj1/T/tmp.3bFPwkWK/pkg/mod/cache/vcs/59c2185b80ea440a7c3b8c5eff3d8abb68c53dea1f20f615370c924c4150b27f: exec: "hg": executable file not found in $PATH
The go.mod file for github.com/operator-framework/operator-lifecycle-manager at commit 81104ffdc4fb requires bitbucket.org/ww/goautoneg v0.0.0-20120707110453-75cd24fc2f2c.
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?
What did you expect to see?
go mod vendor
does not treatbitbucket.org/ww/goautoneg
as a module.What did you see instead?
Per the
grep
output, any module that importsgoautoneg
does so through an internal directory.The text was updated successfully, but these errors were encountered: