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

gomod requires Golang 1.21 but envtest requires 1.22 #2786

Open
iblancasa opened this issue Mar 25, 2024 · 2 comments
Open

gomod requires Golang 1.21 but envtest requires 1.22 #2786

iblancasa opened this issue Mar 25, 2024 · 2 comments
Labels
bug Something isn't working needs triage

Comments

@iblancasa
Copy link
Contributor

Component(s)

No response

What happened?

Description

While trying to run the tests, I got this error:

go fmt ./...
go vet ./...
go: downloading sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240323114127-e08b286e313e
go: sigs.k8s.io/controller-runtime/tools/setup-envtest@latest: sigs.k8s.io/controller-runtime/tools/[email protected] requires go >= 1.22.0 (running go 1.21.7; GOTOOLCHAIN=local)
make: *** [Makefile:395: /home/iblancasa/projects/opentelemetry-operator/bin/setup-envtest] Error 1

Kubernetes Version

.

Operator version

main

Collector version

.

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

Log output

No response

Additional context

No response

@iblancasa iblancasa added bug Something isn't working needs triage labels Mar 25, 2024
@swiatekm
Copy link
Contributor

We should just pin the envtest version to the latest one which supports Go 1.21. This is another example of how #2757 can affect us.

@iblancasa
Copy link
Contributor Author

iblancasa commented Mar 25, 2024

We should just pin the envtest version to the latest one which supports Go 1.21. This is another example of how #2757 can affect us.

Agree

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

No branches or pull requests

2 participants