Skip to content

chore: migrate notifications subscriber to v2#114

Merged
keegancsmith merged 2 commits into
mainfrom
k/pubsub
Jul 8, 2026
Merged

chore: migrate notifications subscriber to v2#114
keegancsmith merged 2 commits into
mainfrom
k/pubsub

Conversation

@keegancsmith

@keegancsmith keegancsmith commented Jul 7, 2026

Copy link
Copy Markdown
Member

This migrates the notifications subscriber package from the deprecated cloud.google.com/go/pubsub module to cloud.google.com/go/pubsub/v2.

The Sourcegraph monorepo cannot clear the Pub/Sub v1 deprecation while the accounts SDK still imports the old module from its notifications subscriber package. Move that package to the supported v2 client API so downstream consumers can stop pulling v1 through this SDK.

Amp-Thread-ID: https://ampcode.com/threads/T-019f3bcb-5412-74e1-ba13-00bf117a1409
Co-authored-by: Amp <amp@ampcode.com>
@keegancsmith

keegancsmith commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

CI failure unrelated.

Edit: probably related to the go.mod version bump, fixing the workflows in this PR

The Pub/Sub v2 migration raises the module's Go target to 1.25, but the prebuilt golangci-lint v1 binary selected by the existing action is built with Go 1.24 and refuses to load the config. Keep the current lint configuration and action generation, but build the linter from source using the workflow Go toolchain so it can analyze the newer module target.

Amp-Thread-ID: https://ampcode.com/threads/T-019f3bcb-5412-74e1-ba13-00bf117a1409
Co-authored-by: Amp <amp@ampcode.com>
Comment thread go.mod
@keegancsmith keegancsmith changed the title fix/pubsub: migrate notifications subscriber to v2 chore: migrate notifications subscriber to v2 Jul 7, 2026
@keegancsmith keegancsmith marked this pull request as ready for review July 7, 2026 09:13
@bobheadxi bobheadxi requested a review from a team July 7, 2026 16:02
@keegancsmith keegancsmith enabled auto-merge (squash) July 8, 2026 05:43
@keegancsmith

keegancsmith commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

Ok

Test (1.22.x, ubuntu-latest)Expected — Waiting for status to be reported

this will never land since it no longer exists. Will force landing.

@keegancsmith keegancsmith disabled auto-merge July 8, 2026 08:05
@keegancsmith keegancsmith merged commit 91a9343 into main Jul 8, 2026
4 checks passed
@keegancsmith keegancsmith deleted the k/pubsub branch July 8, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants