feat: migrate to tools directive (v2)#13906
Merged
Merged
Conversation
Closed
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13906 +/- ##
==========================================
- Coverage 91.67% 91.65% -0.02%
==========================================
Files 652 652
Lines 42516 42516
==========================================
- Hits 38978 38970 -8
- Misses 2730 2736 +6
- Partials 808 810 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
please resolve the conflict and we can get this merged |
See [1] for more details on the tools directive. [1]: https://go.dev/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
994a175 to
f9141fa
Compare
3b91a70 to
ae3f125
Compare
Member
|
Please avoid force pushing, even your own branches. It breaks the GitHub review interface. |
Contributor
Author
I'll keep that in mind, thanks. |
Contributor
Author
@codeboten , done. |
dmathieu
approved these changes
Oct 8, 2025
Merged
via the queue into
open-telemetry:main
with commit Oct 8, 2025
650a809
61 of 62 checks passed
Contributor
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#### Description Update the check-codeowners workflow to use the `make generate-codeowners` target rather than invoking the githubgen tool directly. #### Link to tracking issue Fixes the check-codeowners workflow to align with #13906 #### Testing N/A #### Documentation N/A
mx-psi
pushed a commit
to open-telemetry/opentelemetry-collector-contrib
that referenced
this pull request
Feb 17, 2026
#### Description Modernise Go build tool dependency management, switching from the old "tools.go" approach to go.mod tool directives, and removing the need for explicitly installing tools. Tools are now invoked with `go tool <package/path>`. The tool directive for `genqlient` has been added directly to githubreceiver, which was the only component using it. See this core collector PR for reference: open-telemetry/opentelemetry-collector#13906 #### Link to tracking issue None #### Testing N/A #### Documentation Updated
geekdave
pushed a commit
to oso-team/opentelemetry-collector-contrib
that referenced
this pull request
Feb 20, 2026
#### Description Modernise Go build tool dependency management, switching from the old "tools.go" approach to go.mod tool directives, and removing the need for explicitly installing tools. Tools are now invoked with `go tool <package/path>`. The tool directive for `genqlient` has been added directly to githubreceiver, which was the only component using it. See this core collector PR for reference: open-telemetry/opentelemetry-collector#13906 #### Link to tracking issue None #### Testing N/A #### Documentation Updated
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.
Description
This PR is a continuation of PR #13844 , which had to be reverted in #13899, because of an issue with the
apidifftool as described in #13897 .On top of the changes initially proposed in #13844, this PR also adds the gomodTidy option to renovate postUpdateOptions, so that module dependencies are properly updated before new changes are proposed by
renovate.The changes from this PR have been applied to my fork, so that I can confirm that all workflows are passing as expected and a couple of dummy PRs can be seen below.
renovatewhich takes care of updating a Go tool)cc: @mx-psi , @dmathieu , @codeboten
P.S.: Sorry for the troubles caused by the initial PR!
Link to tracking issue
Fixes #13897
Testing
Local testing as well as testing with PRs against my fork (see links in the description for sample PRs and workflow runs)
Documentation
N/A