summaryrefslogtreecommitdiff
path: root/google-guest-agent.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-20 09:09:34 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-20 09:09:34 +0000
commitf92a0b512ff076ec6a044ac866cbe61efae777be (patch)
treeacf6b041aa2ef4c1347f533df9d23bbdf10a51aa /google-guest-agent.spec
parent44dfff1e5730f22d8bc19af3aafa7f738ff6c820 (diff)
automatic import of google-guest-agent
Diffstat (limited to 'google-guest-agent.spec')
-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