summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--google-guest-agent.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/google-guest-agent.spec b/google-guest-agent.spec
index 8fa53ee..1ef7232 100644
--- a/google-guest-agent.spec
+++ b/google-guest-agent.spec
@@ -60,6 +60,9 @@ Contains the Google guest agent binary.
%endif
%build
+export GOPROXY=https://goproxy.cn,direct
+export GOSUMDB=sum.golang.org
+
for bin in google_guest_agent google_metadata_script_runner gce_workload_cert_refresh; do
pushd "$bin"
GOPATH=%{_gopath} CGO_ENABLED=0 %{_go} build -ldflags="-s -w -X main.version=%{_version}" -mod=readonly