File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,13 @@ cd "${KUBE_ROOT}"
30
30
31
31
make --no-print-directory -C " ${KUBE_ROOT} " generated_files
32
32
33
+ # As of June, 2020 the typecheck tool is written in terms of go/types, but that
34
+ # library doesn't work well with modules. Guidance is to rewrite tools against
35
+ # golang.org/x/tools/go/packages. Until that is done, force this tooling to
36
+ # run in a fake GOPATH.
33
37
ret=0
34
- go run test/typecheck/main.go " $@ " || ret=$?
38
+ hack/run-in-gopath.sh \
39
+ go run test/typecheck/main.go " $@ " || ret=$?
35
40
if [[ $ret -ne 0 ]]; then
36
41
echo " !!! Type Check has failed. This may cause cross platform build failures." >&2
37
42
echo " !!! Please see https://git.k8s.io/kubernetes/test/typecheck for more information." >&2
You can’t perform that action at this time.
0 commit comments