Skip to content

setup-envtest@latest requires golang >=1.25.0? #3358

@stevenhorsman

Description

@stevenhorsman

In the latest release of setup-envtest@latest from this morning our pipelines (which are running on Go 1.24.7) have started reporting failures with installing setup-envtest@latest:

go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
go: downloading sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20251014082336-b8f11375258f
go: downloading sigs.k8s.io/controller-runtime v0.22.3
go: sigs.k8s.io/controller-runtime/tools/setup-envtest@latest: sigs.k8s.io/controller-runtime/tools/[email protected] requires go >= 1.25.0 (running go 1.24.7; GOTOOLCHAIN=local)

The docs:

To use it, just go-install it with Golang 1.24+ (it's a separate, self-contained
module):
```shell
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
```
still seem to suggest that the latest will work with 1.24, so is the documentation wrong and we need to pin the version we are using, or was the dependency bump unintentional?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions