File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ set -o pipefail
25
25
REPO_ROOT=$( git rev-parse --show-toplevel)
26
26
cd " ${REPO_ROOT} "
27
27
28
- # Print the go version
28
+ # Print the go version for diagnostics
29
29
go version
30
30
31
31
# Updates the go.mod in each go module
32
32
# Note: go work sync is not entirely deterministic; I had to clear my modcache with `go clean -cache -modcache`
33
33
go work sync
34
34
35
- # Pin mockkubeapiserver an older version of kube, so mockkubeapiserver can be used from repos that aren't on the latest kube
36
- cd ${REPO_ROOT} /mockkubeapiserver
37
- go get k8s.io/client-go@v0.26.2
38
- go get k8s.io/apimachinery@v0.26.2
35
+ # Tidy each individual go.mod
36
+ for gomod_file in $( find " ${REPO_ROOT} " -name " go.mod" ) ; do
37
+ dir=$( dirname ${gomod_file} )
38
+ cd " ${dir} "
39
+ go mod tidy
40
+ done
You can’t perform that action at this time.
0 commit comments