test-infra uses go modules for Go dependency management.
Run [make update-go-deps
] whenever vendored dependencies change.
New dependencies causes golang to recompute the minor version used for each major version of each dependency. And golang automatically removes dependencies that nothing imports any more.
See golang's go.mod and dependency upgrade docs for more details.
Use hack/make-rules/go-run/arbitrary.sh whatever
rather than go whatever
from your $PATH
to ensure the correct version of golang is selected.
Note that using this path does not otherwise require golang to be installed on your workstation.