Skip to content

fix(go): seed otel-go's genproto requirements - #74

Merged
eunomie merged 1 commit into
dagger:mainfrom
eunomie:fix-bootstrap-requirements
Oct 16, 2026
Merged

eunomie merged 1 commit into
dagger:mainfrom
eunomie:fix-bootstrap-requirements

Conversation

@eunomie

@eunomie eunomie commented Oct 16, 2026

Copy link
Copy Markdown
Member

What

dagger generate failed in go mod tidy with "ambiguous import" for a
module whose dependencies bring the pre-split google.golang.org/genproto
(e.g. netlify/open-api/v2 through an old protobuf). The bootstrap bindings
import otel-go, whose gRPC exporters import googleapis packages that both
that module and the split googleapis/{api,rpc} modules provide. The final
tidy drops the split modules, so every later generation failed.

When generation pins otel-go, it now also requires googleapis/api and
googleapis/rpc at the versions otel-go v1.43.0 requires. Go then finds
those packages in a direct requirement first.

How verified

  • On v1.0.0-beta.18, a module importing netlify/open-api/v2: generation
    failed before. Now it succeeds, regenerating has no changes, and the
    function runs.
  • Unit test: pin then tidy beside a pre-split genproto. It fails without
    the fix.

Not covered

A module that requires the pre-split genproto directly still conflicts.

Walkthrough: https://gistpreview.github.io/?8a03c7fa638493ee3a1e48be41b33abf

The bootstrap bindings import otel-go, whose gRPC exporters import
googleapis packages that the pre-split google.golang.org/genproto module
also contains. When an old dependency brought that module and go.mod did
not require the split modules, go mod tidy failed on an ambiguous import.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie merged commit cc02442 into dagger:main Oct 16, 2026
9 checks passed
@eunomie
eunomie deleted the fix-bootstrap-requirements branch October 16, 2026 19:16
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.

1 participant