-
Notifications
You must be signed in to change notification settings - Fork 1
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
Potential import collision: import path should be "k8s.io/helm", not "github.com/helm/helm". #7
Comments
@xchapter7x Could you help me review this issue? Thx :p |
Welcome to the community and thank you for adding this issue :)' first issue |
Hi @KateGo520 Thanks for bringing this up. I'd be happy to merge in a PR if you have a WIP in a branch already? One question I have though, is this causing an issue somewhere? Is there a breaking test case I can add somewhere or is this just poor dependency hygiene? Thanks for being engaged. I hope you are finding value in hcunit. Please let me know if you have any suggestions or feedback on this tool. Insights on how you are using it would be most helpful as well :) |
we should only use a single version of a dependency. this fixes an issue where we were importing helm libs from 2 different sources of truth. #7
this use of duplicate replica dependencies has now been addressed: and is in the latest release: |
Thanks for your efforts and feedback. @xchapter7x |
Background
I find that
k8s.io/helm
andgit.luolix.top/helm/helm
coexist in this repo:https://github.com/xchapter7x/hcunit/blob/master/go.mod (Line 15 & 31)
The
helm/helm
has already renamed it’s import path from "github.com/helm/helm" to "k8s.io/helm".https://github.com/helm/helm/blob/v2.14.3/pkg/chartutil/values_test.go#L31
The "k8s.io/helm" and "github.com/helm/helm" are the same repos. This will work in isolation, bring about potential risks and problems.
So, why not get rid of the old import path "github.com/helm/helm", use "k8s.io/helm" instead.
Solution
Replace all the old import paths, change
"github.com/helm/helm"
to"k8s.io/helm"
.Where did you import it: https://github.com/xchapter7x/hcunit/search?q=github.com%2Fhelm%2Fhelm&unscoped_q=github.com%2Fhelm%2Fhelm
The text was updated successfully, but these errors were encountered: