-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Bug] Bad versioning breaks imports #8284
Copy link
Copy link
Closed
Labels
Description
What were you trying to accomplish?
Import the latest eksctl v0.205.0 into my Go project.
What happened?
This causes go mod tidy to quit with:
k8s.io/client-go/openapi3: package k8s.io/client-go/openapi3 provided by k8s.io/client-go at latest version v0.32.2 but not at required version v1.5.2
You require k8s.io/client v1.5.2 in your go.mod.
However, you later replace that with a sane k8s.io/client v0.32.1.
Your project does not break, only people who import your project.
This was broken by @bryantbiggs on fe547b6.
cc: @cheeseandcereal
How to reproduce it?
Run go mod tidy on my example program.
https://github.com/tendervittles/bad-eksctl
package main
import (
"fmt"
// This import causes `go mod tidy` to break
_ "github.com/weaveworks/eksctl/pkg/credentials"
)
func main() {
fmt.Println("Hello World")
}Reactions are currently unavailable