apache / apache/beam

[Bug]: pubsubio imports google.golang.org/genproto/googleapis/pubsub/v1, which was removed from current genproto releasess

Open
#40,018 1 comment 0 reactions 1 assignee Claimed by @DiezNobach View on GitHub
bug go io P2
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.