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
If a repo already depends on a version of cloud.google.com/go < v0.105.0 and tries to import cloud.google.com/go/compute/metadata, it'll hit the problem of ambiguous imports while running go mod tidy - golang/go#27899 (another example - ugorji/go#279).
pin cloud.google.com/go to a version which includes the cloud.google.com/go/compute/metadata module i.e. > v0.105.0
Run an explicit go get cloud.google.com/[email protected] before running go mod tidy.
For (1), it brings in additional changes that we might not want right now (like bumping genproto). So we go ahead with (2) until we are ready to bump cloud.google.com/go or remove the dependency on it.
/assign
The text was updated successfully, but these errors were encountered:
Ref: kubernetes/kubernetes#113366, kubernetes/kubernetes#114829
On merging kubernetes/kubernetes#114822, the publishing-bot failed on running
go mod tidy
- kubernetes/kubernetes#56876 (comment):googleapis/google-cloud-go#6311 made
compute/metadata
its own module. This commit exists also exists on:v0.105.0
of the root module (cloud.google.com/go)v1.12.0
of cloud.google.com/go/computeIf a repo already depends on a version of
cloud.google.com/go
<v0.105.0
and tries to importcloud.google.com/go/compute/metadata
, it'll hit the problem of ambiguous imports while runninggo mod tidy
- golang/go#27899 (another example - ugorji/go#279).Note: apiserver requires
v0.97.0
of the root module - https://github.com/kubernetes/kubernetes/blob/293bf70916de8ef61d5f868f53959f1e15b3e091/staging/src/k8s.io/apiserver/go.mod#L60To resolve this, we either need to:
cloud.google.com/go
to a version which includes thecloud.google.com/go/compute/metadata
module i.e. >v0.105.0
go get cloud.google.com/[email protected]
before runninggo mod tidy
.For (1), it brings in additional changes that we might not want right now (like bumping genproto). So we go ahead with (2) until we are ready to bump
cloud.google.com/go
or remove the dependency on it./assign
The text was updated successfully, but these errors were encountered: