Skip to content

Commit 7942f48

Browse files
chore(pubsub): add v1 deprecation notice in more places (googleapis#13841)
This PR pushes the end of support for pubsub v1 (aka cloud.google.com/go/pubsub) to December 31st, 2026. This also marks the deprecation in more places, including at the [module level](https://go.dev/ref/mod#go-mod-file-module-deprecation). Previously, this was only marked at the package level --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 75e6b63 commit 7942f48

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

pubsub/MIGRATING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ This guide shows how to migrate from the Go PubSub client library v1 version clo
44

55
Note: The code snippets in this guide are meant to be a quick way of comparing the differences between the v1 and v2 packages and **don’t compile as-is**. For a list of all the samples, see the [updated samples](https://cloud.google.com/pubsub/docs/samples).
66

7-
In line with Google's [OSS Library Breaking Change Policy](https://opensource.google/documentation/policies/library-breaking-change), support for the Go PubSub client library v1 version will continue until July 31st, 2026. This includes continued bug fixes and security patches for v1 version, but no new features would be introduced. We encourage all users to migrate to the Go PubSub client library v2 version before support expires for the earlier v1 version.
7+
In line with Google's [OSS Library Breaking Change Policy](https://opensource.google/documentation/policies/library-breaking-change), support for the Go PubSub client library v1 version will continue until December 31st, 2026. This includes continued bug fixes and security patches for v1 version, but no new features would be introduced. We encourage all users to migrate to the Go PubSub client library v2 version before support expires for the earlier v1 version.
8+
9+
Note: The end of support date has been extended to December 31st, 2026 from the previously announced July 31st, 2026.
810

911
## New imports
1012

pubsub/doc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
/*
1616
Package pubsub provides an easy way to publish and receive Google Cloud Pub/Sub
1717
messages, hiding the details of the underlying server RPCs.
18+
19+
This package is **deprecated**. All users should use cloud.google.com/go/pubsub/v2 instead.
20+
This version will be supported with bug fixes and security patches until the deprecation date of December 31st, 2026.
21+
For more information about migrating, see https://github.com/googleapis/google-cloud-go/blob/main/pubsub/MIGRATING.md
22+
1823
Pub/Sub is a many-to-many, asynchronous messaging system that decouples senders
1924
and receivers.
2025

pubsub/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Deprecated: use cloud.google.com/go/pubsub/v2 instead.
2+
// This version will be supported with bug fixes and security patches until December 31st, 2026.
3+
// For migration, see https://github.com/googleapis/google-cloud-go/blob/main/pubsub/MIGRATING.md
14
module cloud.google.com/go/pubsub
25

36
go 1.24.0

0 commit comments

Comments
 (0)