Skip to content

Conversation

@adombeck
Copy link
Contributor

@adombeck adombeck commented Nov 6, 2025

@adombeck adombeck requested a review from didrocks as a code owner November 6, 2025 14:01
@adombeck
Copy link
Contributor Author

adombeck commented Nov 6, 2025

@adombeck adombeck changed the title Support using go tool directive for protoc-gen-go feat: Support using go tool directive for protoc-gen-go Nov 6, 2025
* Use `go tool` to check if protoc should be installed.
* Drop support for installing tools from `tools/*.go` files - the only
  reason we kept it after #89 was to avoid breaking protoc.
@adombeck adombeck changed the title feat: Support using go tool directive for protoc-gen-go feat: Support using go tool directive for protoc deps Nov 6, 2025
Copy link
Contributor

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed way better! Wouldn’t that potentially break some repos though that are depending on this? Should we just update them first?

@adombeck
Copy link
Contributor Author

adombeck commented Nov 7, 2025

For migration I see two options:

  1. Introduce a v3 tag
  2. Keep installing the tools from tools/*.go in addition to handling protoc dependencies defined via the tool directive, migrate all projects which use protoc, then drop the support for tools/*.go.

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.

2 participants