Compilation failed
Open
Nobody has claimed this yet.
kind/bug
status/0-triage
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Description
I'm trying to compile LFS using podman or manually, but no matter what I do, I get the following error. I think it's implementation-related, but I don't know why. Does anyone know the reason?
/go/pkg/mod/google.golang.org/grpc@v1.78.0/status/status.go:35:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230306155012-7f2fa6fef1f4/googleapis/rpc/status)
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 (/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20260128011058-8636f8732409/status)
/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway/v2@v2.27.7/runtime/handler.go:13:2: ambiguous import: found package google.golang.org/genproto/googleapis/api/httpbody in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230306155012-7f2fa6fef1f4/googleapis/api/httpbody)
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 (/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20260128011058-8636f8732409/httpbody)
/go/pkg/mod/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc@v1.40.0/client.go:13:2: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/errdetails in multiple modules:
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230306155012-7f2fa6fef1f4/googleapis/rpc/errdetails)
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 (/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20260128011058-8636f8732409/errdetails)
root@docker-cli-dev# go install github.com/docker/cli/cmd/docker@v29.2.1
Reproduce
go install github.com/docker/cli/cmd/docker@v29.2.1
Expected behavior
No response
docker version
N/A
docker info
N/A
Additional Info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with go install github.com/docker/cli/cmd/docker@v29.2.1 and inspect the reported google.golang.org/genproto module paths involved in the ambiguous imports. Done means the Docker CLI compilation completes without duplicate-package errors; the issue does not name a repository file or test to begin with.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100