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/get: go get fails with "...found, but does not contain package" instead of resolving nested module #58116

Open
sirianni opened this issue Jan 27, 2023 · 1 comment
Labels
GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@sirianni
Copy link

sirianni commented Jan 27, 2023

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

$ go version
go version go1.19.5 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

Linux amd64

go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/sirianni/.cache/go-build"
GOENV="/home/sirianni/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/sirianni/go/pkg/mod"
GONOPROXY="github.com/confluentinc/*"
GONOSUMDB="github.com/confluentinc/*"
GOOS="linux"
GOPATH="/home/sirianni/go"
GOPRIVATE="github.com/confluentinc/*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/sirianni/.asdf/installs/golang/1.19.5/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/sirianni/.asdf/installs/golang/1.19.5/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1184547243=/tmp/go-build -gno-record-gcc-switches"

What did you do?

$ go get github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor@v0.69.0 

What did you expect to see?

Module successfully found and added to go.mod

What did you see instead?

go: module github.com/open-telemetry/opentelemetry-collector-contrib@v0.69.0 found, but does not contain package github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor

Running go clean -modcache and then re-executing the same go get ... command works.

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go modules labels Jan 27, 2023
@bcmills bcmills added this to the Backlog milestone Jan 27, 2023
@bcmills bcmills changed the title cmd/get: go get fails with "...found, but does not contain package" cmd/get: go get fails with "...found, but does not contain package" instead of resolving nested module Jan 27, 2023
@bcmills
Copy link
Contributor

bcmills commented Jan 27, 2023

This may be related to #47650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants