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

[Bug] Bad versioning breaks imports #8284

Open
tendervittles opened this issue Mar 1, 2025 · 2 comments
Open

[Bug] Bad versioning breaks imports #8284

tendervittles opened this issue Mar 1, 2025 · 2 comments
Labels

Comments

@tendervittles
Copy link

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")
}
Copy link
Contributor

github-actions bot commented Mar 1, 2025

Hello tendervittles 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@dims
Copy link
Contributor

dims commented Mar 1, 2025

@tendervittles thanks for the report. we'll get it fixed soon.

in the meanwhile, can you please use a replace in your go.mod as a work around. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants