[Bug]: pubsubio imports google.golang.org/genproto/googleapis/pubsub/v1, which was removed from current genproto releasess
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
### What happened?
Affects: Apache Beam Go SDK v2.75.0 (also confirmed present on master as of 2026-09-04, via code search). Go 1.26 toolchain, but this is independent of Go version — it's a go build/module-resolution failure caused by upstream package removal.
sdks/go/pkg/beam/io/pubsubio/pubsubio.go imports google.golang.org/genproto/googleapis/pubsub/v1 (aliased pb) solely to use pb.PubsubMessage as a plain proto struct for local (un)marshaling — no gRPC client from that package is used. pubsubio.Read/.Write delegate entirely to Dataflow's native beam:transform:pubsub_read/write:v1 external transform, so this import isn't functionally required for either.
Recent google.golang.org/genproto releases no longer contain the googleapis/pubsub/v1 package at all. Any Go module that (a) imports beam/io/pubsubio and (b) needs — directly or transitively — a genproto version released after that package was dropped, fails to build.
Steps to reproduce:
In a Go module, import github.com/apache/beam/sdks/v2/go/pkg/beam/io/pubsubio.
### Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
### Issue Components
- [ ] Component: Python SDK
- [ ] Component: Java SDK
- [x] Component: Go SDK
- [ ] Component: Typescript SDK
- [x] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Prism Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
Contributor guide
Assessment
This issue has not been assessed yet.