summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--google-guest-agent.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/google-guest-agent.spec b/google-guest-agent.spec
index 31cc158..c1a4e77 100644
--- a/google-guest-agent.spec
+++ b/google-guest-agent.spec
@@ -52,7 +52,6 @@ Obsoletes: python-google-compute-engine, python3-google-compute-engine
Contains the Google guest agent binary.
%prep
-find . -name "go.mod" -exec sed -i 's/^go 1\.[0-9]\+$/go 1.21/' {} \;
%if 0%{?build_plugin_manager}
%autosetup -a 1
@@ -60,6 +59,8 @@ find . -name "go.mod" -exec sed -i 's/^go 1\.[0-9]\+$/go 1.21/' {} \;
%autosetup
%endif
+find . -name "go.mod" -exec sed -i 's/^go 1\.[0-9]\+$/go 1.21/' {} \;
+
%build
export GOPROXY=https://goproxy.cn,direct
export GOSUMDB=sum.golang.org