From 9973a66665992c49593595ae1eb70848907ea6a9 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Date: Wed, 12 Aug 2020 16:01:49 +0000
Subject: [PATCH] build/golang.sh: convert remaining 'go' calls to use

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
 hack/lib/golang.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: kubernetes/hack/lib/golang.sh
===================================================================
--- kubernetes.orig/hack/lib/golang.sh
+++ kubernetes/hack/lib/golang.sh
@@ -743,7 +743,7 @@ kube::golang::build_some_binaries() {
         kube::golang::create_coverage_dummy_test "${package}"
         kube::util::trap_add "kube::golang::delete_coverage_dummy_test \"${package}\"" EXIT
 
-        go test -c -o "$(kube::golang::outfile_for_binary "${package}" "${platform}")" \
+        $GO test -c -o "$(kube::golang::outfile_for_binary "${package}" "${platform}")" \
           -covermode count \
           -coverpkg k8s.io/... \
           "${build_args[@]}" \
@@ -755,13 +755,13 @@ kube::golang::build_some_binaries() {
     done
     if [[ "${#uncovered[@]}" != 0 ]]; then
       V=2 kube::log::info "Building ${uncovered[*]} without coverage..."
-      GOPROXY=off go install "${build_args[@]}" "${uncovered[@]}"
+      GOPROXY=off $GO install "${build_args[@]}" "${uncovered[@]}"
     else
       V=2 kube::log::info "Nothing to build without coverage."
     fi
   else
     V=2 kube::log::info "Coverage is disabled."
-    GOPROXY=off go install "${build_args[@]}" "$@"
+    GOPROXY=off $GO install "${build_args[@]}" "$@"
   fi
 }
 
@@ -821,7 +821,7 @@ kube::golang::build_binaries_for_platfor
     testpkg=$(dirname "${test}")
 
     mkdir -p "$(dirname "${outfile}")"
-    go test -c \
+    $GO test -c \
       ${goflags:+"${goflags[@]}"} \
       -gcflags="${gogcflags}" \
       -ldflags="${goldflags}" \
