Open rakeshgm opened 1 year ago
do we add them under replace
section in go.mod
Using a go get command forces a check of the imports and because of the following import tree we have a failure of the check.
Ramen imports argoproj/argo-cd argoproj/argo-cd imports gitops-engine gitops-engine imports k8s.io/kubernetes.
It is documented in https://github.com/argoproj/argo-cd/issues/4055 and https://github.com/argoproj/argo-cd/issues/4055#issuecomment-801333695.
Kubernetes project discourages the import of k8s.io/kubernetes and recommends import of individual modules. While we wait for the argoproj to fix the dependencies, we can update the go.mod file manually and then run the go mod tidy
command to skip these checks.
We already have the replace directives required for the modules.
in the above, we see that
github.com/argoproj/argo-cd/v2 v2.7.0-rc2
andgithub.com/argoproj/argo-cd/v2 v2.7.0-rc2
are removed which are needed by ramen.