Skip to content

feat: Support using go tool directive for protoc deps#91

Open
adombeck wants to merge 1 commit into
mainfrom
protoc-go-tool
Open

feat: Support using go tool directive for protoc deps#91
adombeck wants to merge 1 commit into
mainfrom
protoc-go-tool

Conversation

@adombeck

@adombeck adombeck commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

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

adombeck commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

@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
@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

@didrocks didrocks left a comment

Copy link
Copy Markdown
Contributor

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

adombeck commented Nov 7, 2025

Copy link
Copy Markdown
Contributor Author

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.

@jibel

jibel commented Jun 17, 2026

Copy link
Copy Markdown

@adombeck can you resolve the conflicts and resubmit for review?

* 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

Copy link
Copy Markdown
Contributor Author

Resolved the conflicts

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.

3 participants