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

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

Closed
nathanperkins opened this issue Apr 5, 2024 · 2 comments

Comments

@nathanperkins
Copy link

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 :(

@pmalek
Copy link

pmalek commented Apr 5, 2024

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

@nathanperkins
Copy link
Author

nathanperkins commented Apr 5, 2024

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

@nathanperkins nathanperkins closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants