kubernetes-sigs / controller-runtime

Repo for the controller-runtime subproject of kubebuilder (sig-apimachinery)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot run / install specific versions of setup-envtest due to missing submodule tag

nathanperkins opened this issue · comments

I'm getting a failure when trying to run a specific version of setup-envtest. We need to run an old version in our CI because the new version uses a go.mod with version 1.22.0 which isn't compatible with our CI's go toolchain.

go: sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.17.2: module sigs.k8s.io/controller-runtime@v0.17.2 found, but does not contain package sigs.k8s.io/controller-runtime/tools/setup-envtest

My understanding is that this failure is because setup-envtest is a submodule in controller-runtime and needs it's own tag, like tools/setup-envtest/v0.17.2.

I'm having trouble finding the golang documentation which explains how submodules need their own tag to work properly :(

This is most likely a duplicate of #2744 and related to #2646

This is most likely a duplicate of #2744 and related to #2646

You're right, thank you! I see there is a workaround if you install with @branch.

edit: probably could reference a specific commit too