Skip to content

fix(deps)!: Update module cloud.google.com/go/pubsub to v2 - #731

Open
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/cloud.google.com-go-pubsub-2.x
Open

fix(deps)!: Update module cloud.google.com/go/pubsub to v2#731
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/cloud.google.com-go-pubsub-2.x

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cloud.google.com/go/pubsub v1.44.0v2.4.0 age confidence

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@forking-renovate forking-renovate Bot added the dependencies Pull requests that update a dependency file label Aug 6, 2026
@forking-renovate

forking-renovate Bot commented Aug 6, 2026

Copy link
Copy Markdown

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: modules/htc-infra/agent/src/go.sum
Command failed: go get -t ./...
go: downloading cloud.google.com/go/compute/metadata v0.9.0
go: downloading cloud.google.com/go v0.123.0
go: downloading cloud.google.com/go/pubsub v1.50.1
go: downloading cloud.google.com/go/storage v1.56.0
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.53.0
go: downloading go.opentelemetry.io/contrib/detectors/gcp v1.38.0
go: downloading go.opentelemetry.io/otel v1.39.0
go: downloading go.opentelemetry.io/otel/bridge/opencensus v1.31.0
go: downloading go.opentelemetry.io/otel/sdk/metric v1.39.0
go: downloading go.opentelemetry.io/otel/sdk v1.39.0
go: downloading golang.org/x/oauth2 v0.34.0
go: downloading google.golang.org/api v0.259.0
go: downloading google.golang.org/grpc v1.78.0
go: downloading google.golang.org/protobuf v1.36.11
go: downloading golang.org/x/sys v0.39.0
go: downloading cloud.google.com/go/iam v1.5.3
go: downloading github.com/googleapis/gax-go/v2 v2.16.0
go: downloading go.opentelemetry.io/otel/trace v1.39.0
go: downloading golang.org/x/sync v0.19.0
go: downloading cloud.google.com/go/auth v0.18.0
go: downloading google.golang.org/genproto v0.0.0-20251202230838-ff82c1b0f217
go: downloading cloud.google.com/go/monitoring v1.24.3
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.53.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b
go: downloading github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.30.0
go: downloading go.opentelemetry.io/otel/metric v1.39.0
go: downloading golang.org/x/net v0.48.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b
go: downloading cloud.google.com/go/pubsub/v2 v2.4.0
go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.8
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/google/s2a-go v0.1.9
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0
go: downloading golang.org/x/time v0.14.0
go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.7
go: downloading github.com/envoyproxy/go-control-plane v0.13.5-0.20251024222203-75eaa193e329
go: downloading github.com/envoyproxy/go-control-plane/envoy v1.35.0
go: downloading golang.org/x/text v0.32.0
go: downloading github.com/cncf/xds/go v0.0.0-20251022180443-0feb69152e9f
go: downloading github.com/envoyproxy/protoc-gen-validate v1.2.1
go: downloading github.com/spiffe/go-spiffe/v2 v2.6.0
go: downloading github.com/go-jose/go-jose/v4 v4.1.3
go: downloading cel.dev/expr v0.24.0
go: downloading golang.org/x/crypto v0.46.0
go: downloading google.golang.org/grpc/stats/opentelemetry v0.0.0-20241028142157-ada6787961b3
go: downloading google.golang.org/grpc v1.83.0
go: github.com/GoogleCloudPlatform/risk-and-research-blueprints/examples/risk/agent/gcp imports
	cloud.google.com/go/storage imports
	google.golang.org/grpc/stats/opentelemetry: ambiguous import: found package google.golang.org/grpc/stats/opentelemetry in multiple modules:
	google.golang.org/grpc v1.78.0 (/runner/cache/others/go/pkg/mod/google.golang.org/grpc@v1.78.0/stats/opentelemetry)
	google.golang.org/grpc/stats/opentelemetry v0.0.0-20241028142157-ada6787961b3 (/runner/cache/others/go/pkg/mod/google.golang.org/grpc/stats/opentelemetry@v0.0.0-20241028142157-ada6787961b3)
go: module cloud.google.com/go/pubsub is deprecated: use cloud.google.com/go/pubsub/v2 instead.

@dpebot

dpebot commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the cloud.google.com/go/pubsub dependency to v2 in go.mod. The review feedback correctly points out that this major version update requires updating the corresponding import paths in the Go source files (such as serve/pubsub.go and test/pubsub.go) to avoid compilation errors.

@@ -5,7 +5,7 @@ toolchain go1.24.1

require (
cloud.google.com/go/compute/metadata v0.5.2
cloud.google.com/go/pubsub v1.44.0
cloud.google.com/go/pubsub/v2 v2.4.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating the cloud.google.com/go/pubsub dependency to v2 in go.mod requires updating the import paths in your Go source files. Currently, serve/pubsub.go (line 27) and test/pubsub.go (line 21) still import "cloud.google.com/go/pubsub". Please update those imports to "cloud.google.com/go/pubsub/v2" to ensure the project compiles successfully and uses the correct version of the library.

@renovate-bot
renovate-bot force-pushed the renovate/cloud.google.com-go-pubsub-2.x branch from d995574 to a47e86b Compare August 6, 2026 21:19
@dpebot

dpebot commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

1 similar comment
@amandakarina

Copy link
Copy Markdown
Collaborator

/gcbrun

@renovate-bot
renovate-bot force-pushed the renovate/cloud.google.com-go-pubsub-2.x branch from a47e86b to 8712993 Compare August 10, 2026 16:43
@dpebot

dpebot commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants