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

Kubelogin dependency - unknown revision #241

Open
malins opened this issue May 13, 2024 · 2 comments
Open

Kubelogin dependency - unknown revision #241

malins opened this issue May 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@malins
Copy link

malins commented May 13, 2024

Hello,

in your go.mod file, you have the following dependency:

github.com/Azure/kubelogin v0.0.0-00010101000000-000000000000

When trying to open a project with a dependency to provider-kubernetes, I get the following error:

$ go list -m all
go: github.com/Azure/[email protected]: invalid version: unknown revision 000000000000

@malins malins added the bug Something isn't working label May 13, 2024
@jbw976
Copy link
Member

jbw976 commented May 14, 2024

Thanks for reporting this @malins! Looks like that version is overridden later on with a replace statement at the end of the go.mod file: https:/crossplane-contrib/provider-kubernetes/blob/main/go.mod#L109

  • What version of go do you have? I wasn't seeing this just now when I tried go list -m all myself
  • Does it change if you run go mod tidy?
  • Does this impact any functionality for you and can you successfully build locally with make?

@malins
Copy link
Author

malins commented May 14, 2024

I'm using go 1.22, but the error also occurs with go 1.21.

Please note that i'm executing the command on a module with a dependency to provider-kubernetes, not on provider-kubernetes directly.

My workaround is to declare a dependency to kubelogin with a proper version in my module directly, which overrides the bogus version from provider-kubernetes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants