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

Unable to get v2 versions of go module #3947

Open
tejokumar opened this issue Nov 21, 2024 · 0 comments
Open

Unable to get v2 versions of go module #3947

tejokumar opened this issue Nov 21, 2024 · 0 comments

Comments

@tejokumar
Copy link

Describe the bug

Go is not able to import sigs.k8s.io/aws-load-balancer-controller@v2.10.0. go get sigs.k8s.io/aws-load-balancer-controller@v2.10.0 throws the error, go:sigs.k8s.io/aws-load-balancer-controller@v2.10.0:invalid version: module contains a go.mod file, so module path must match major version ("sigs.k8s.io/aws-load-balancer-controller@v2.10.0/v2")

Steps to reproduce

With go version 1.22+, import the module sigs.k8s.io/aws-load-balancer-controller@v2.10.0
Run go get sigs.k8s.io/aws-load-balancer-controller@v2.10.0 in the terminal

Expected outcome

The module is installed successfully

Environment

  • MacBook with go lang version 1.22.6 darwin/arm64

Additional Context:

Tried to get the module using recommended path sigs.k8s.io/aws-load-balancer-controller/v2@v2.10.0. But, still the same error. The go.mod file is set to module "sigs.k8s.io/aws-load-balancer-controller". It should have been "sigs.k8s.io/aws-load-balancer-controller/v2"

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

No branches or pull requests

1 participant