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"
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
Rungo get sigs.k8s.io/aws-load-balancer-controller@v2.10.0
in the terminalExpected 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. Thego.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"