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

Cannot import argocd as dependency #9198

Closed
3 tasks done
wangli1030 opened this issue Apr 25, 2022 · 2 comments
Closed
3 tasks done

Cannot import argocd as dependency #9198

wangli1030 opened this issue Apr 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@wangli1030
Copy link

wangli1030 commented Apr 25, 2022

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

Hi, I am trying to import types.go to unmarshall the API response. However, since k8s.io/kubernetes v1.23.1 is required in the go.mod, it will caused an error when import go: k8s.io/kubernetes@v1.23.1 requires k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0. As it mentioned, it should not depend directly on k8s/kubernetes. Argo Rollouts had similar issue.

To Reproduce

Expected behavior

k8s.io/kubernetes v1.23.1 should be safely removed from go.mod.

Screenshots

Version

argocd-server: v2.2.5+8f981cc

Logs

go: k8s.io/kubernetes@v1.23.1 requires k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
@wangli1030 wangli1030 added the bug Something isn't working label Apr 25, 2022
@Lirt
Copy link

Lirt commented Nov 22, 2022

Any chance someone from ArgoCD team could look at it?

Edit:

I will try it and edit my comment.

@crenshaw-dev
Copy link
Collaborator

Yep, to reiterate @Lirt's comment, the solution is documented here: https://argo-cd.readthedocs.io/en/stable/user-guide/import/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants