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

📖 Add setup-envtest Instructions for Go < 1.22 #2849

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tools/setup-envtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ This is a small tool that manages binaries for envtest. It can be used to
download new binaries, list currently installed and available ones, and
clean up versions.

To use it, just go-install it on 1.19+ (it's a separate, self-contained
To use it, just go-install it with Golang 1.22+ (it's a separate, self-contained
module):

```shell
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
```

If you are using Golang 1.20 or 1.21, use the `release-0.17` branch instead:

```shell
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.17
```

For full documentation, run it with the `--help` flag, but here are some
examples:

Expand Down