-
Notifications
You must be signed in to change notification settings - Fork 100
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
imdario/mergo module rename is creating issues with go mod tidy #442
Comments
Thanks for reporting this @jgalliers @vladimirvivien @cpanato I see there is some work happening on the I did some quick check to see if we can get rid of the |
@harshanarayana I think for now, let's do a package replace to keep it simple. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Is this still an issue @jgalliers @harshanarayana |
I have since moved on to other parts of our software solution. I have not heard of any subsequent issues from the team involved, so it seems that for now this issue can be safely closed. Thank you for following up! |
Closed complete due to lack of ongoing repro. |
What happened?
The module author of mergo renamed their module as described in their readme from
github.com/imdario/mergo
todario.cat/mergo
. A similar issue has been filed with kubernetes.This change breaks transitive dependencies because
replace
directives do not apply to modules outside the current codebase. For eg, the below is usually what you would do to address this scenario:What did you expect to happen?
After running
go get -u
and using the above replace statement,go mod tidy
should succeed. Unfortunately this results in the following error:The result of
go mod why
shows the followingHow can we reproduce it (as minimally and precisely as possible)?
Referencing the e2e framework in a new module and then attempting to update/tidy should be sufficient to trigger a warning, if not the error
Anything elese we need to know?
Ideally the replace statement mentioned above could be added to the e2e framework
go.mod
to ensure upstream consumers are not presented with errors or warnings about conflicting package imports.E2E Provider Used
kind
e2e-framework
Versionv0.4.0
OS version
The text was updated successfully, but these errors were encountered: