-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2849 from adambkaplan/setup-envtest-golang-doc
📖 Add setup-envtest Instructions for Go < 1.22
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
``` | ||
|
||
For full documentation, run it with the `--help` flag, but here are some | ||
examples: | ||
|
||
|