Skip to content

Commit 1f5b39f

Browse files
authored
Merge pull request #2849 from adambkaplan/setup-envtest-golang-doc
📖 Add setup-envtest Instructions for Go < 1.22
2 parents f9d51ba + 9438fbd commit 1f5b39f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/setup-envtest/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ This is a small tool that manages binaries for envtest. It can be used to
44
download new binaries, list currently installed and available ones, and
55
clean up versions.
66

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

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

14+
If you are using Golang 1.20 or 1.21, use the `release-0.17` branch instead:
15+
16+
```shell
17+
go install sigs.k8s.io/controller-runtime/tools/[email protected]
18+
```
19+
1420
For full documentation, run it with the `--help` flag, but here are some
1521
examples:
1622

0 commit comments

Comments
 (0)