kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.96k stars 1.47k forks source link

Unable to get v2 versions of go module #3947

Open tejokumar opened 4 days ago

tejokumar commented 4 days ago

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

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"