Repository navigation
fix(go): seed otel-go's genproto requirements - #74
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
dagger generatefailed ingo mod tidywith "ambiguous import" for amodule whose dependencies bring the pre-split
google.golang.org/genproto(e.g.
netlify/open-api/v2through an old protobuf). The bootstrap bindingsimport otel-go, whose gRPC exporters import googleapis packages that both
that module and the split
googleapis/{api,rpc}modules provide. The finaltidy drops the split modules, so every later generation failed.
When generation pins otel-go, it now also requires
googleapis/apiandgoogleapis/rpcat the versions otel-go v1.43.0 requires. Go then findsthose packages in a direct requirement first.
How verified
netlify/open-api/v2: generationfailed before. Now it succeeds, regenerating has no changes, and the
function runs.
the fix.
Not covered
A module that requires the pre-split genproto directly still conflicts.
Walkthrough: https://gistpreview.github.io/?8a03c7fa638493ee3a1e48be41b33abf