-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] add remove-toolchain make cmd #35490
[chore] add remove-toolchain make cmd #35490
Conversation
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
708b7b3
to
bd93fb3
Compare
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
cmd/otelcontribcol/go.mod
Outdated
@@ -4,6 +4,8 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/cmd/otelcontrib | |||
|
|||
go 1.22.0 | |||
|
|||
toolchain go1.22.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left this in since this file will be removed with #34844 anyways and this also satisfies the pipeline
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I would expect this PR to also remove the toolchain directive from e.g.
|
Thanks for explaining! |
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> This PR adds a new `remove-toolchain` make command which removes the `toolchain` directive from all go.mod files. The new make command is also added to the `update-otel` make target. **Link to tracking Issue:** <Issue number if applicable> - fixes open-telemetry#33600 - could potentially also work for open-telemetry#35160 **Testing:** <Describe what testing was performed and which tests were added.> - add a `toolchain go1.22.5` directive to any of the go.mod files in this repo - call `make remove-toolchain` - check if the toolchain directive was removed --------- Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
fixes #35160 |
Description:
This PR adds a new
remove-toolchain
make command which removes thetoolchain
directive from all go.mod files.The new make command is also added to the
update-otel
make target.Link to tracking Issue:
make gotidy
runs #35160Testing:
toolchain go1.22.5
directive to any of the go.mod files in this repomake remove-toolchain