forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Generate
replace
directives automatically in check-contrib
(
open-telemetry#11683) #### Description `make check-contrib` use `go mod edit` to allow running the `opentelemetry-collector-contrib` unit tests against the local version of the core libraries. It also removes the `replace` statements after tests have been run. At the moment, this is done with two long handwritten `go mod edit` commands. But this very easily gets out-of-date: for reference, we currently only `-replace` 70 modules out of the 73 in versions.yaml, and only `-dropreplace` 63 out of _those_. This PR changes the `Makefile` to programatically generate the commands, to avoid needing to keep them up to date. This was split off from PR open-telemetry#11670. You can check the output in the `contrib-tests` CI job output.
- Loading branch information
1 parent
b55b841
commit 8b99b80
Showing
1 changed file
with
4 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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