Skip to content
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] refactor(contrib): remove unused replace directive for go-connections package #677

Merged

Conversation

andrzej-stencel
Copy link
Member

The package github.com/docker/go-connections only exists in contrib's generated go.mod file in version v0.5.0, and does not exist in the replaced version v0.4.1. The distro also builds and runs fine without the replace directive.

I believe the reason for the replace directive to had been added is out of date. To be sure, I have run the repro scenario described here and the behavior with go-connections v0.5.0 was correct - the Docker client tried to connect to the TCP port.

…nnections` package

The package `github.com/docker/go-connections` only exists in contrib's generated `go.mod` file
in version `v0.5.0`, and does not exist in the replaced version `v0.4.1`.
The distro also builds and runs fine without the replace directive.

I believe the [reason](open-telemetry/opentelemetry-collector-contrib#12322 (comment))
for the replace directive to have been added is out of date.
To be sure, I have run the repro scenario described [here](docker/go-connections#99 (comment))
and the behavior with go-connections v0.5.0 was correct - the Docker client tried to connect to the TCP port.
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner September 25, 2024 12:31
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

This looks ok, removing the same replace in contrib open-telemetry/opentelemetry-collector-contrib#35554

@codeboten codeboten merged commit edc8e94 into open-telemetry:main Oct 2, 2024
18 checks passed
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