From b0127f4a0dcaf1153ab2010013f52a4ea9bc143d Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Jun 2026 05:02:03 +0000 Subject: [PATCH] fix(autopatch): auto-fix for golang on c10 Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference config fix for the a10 branch. --- config.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/config.yaml b/config.yaml index c540f54..f323840 100644 --- a/config.yaml +++ b/config.yaml @@ -2,14 +2,15 @@ actions: - replace: - target: "spec" find: | - %build + %global goamd64 v3 + %global goppc64 power9 replace: | %ifarch x86_64_v2 - sed -i 's/^GOAMD64=v3$/GOAMD64=v2/' ./go.env - grep -q '^GOAMD64=v2$' ./go.env + %global goamd64 v2 + %else + %global goamd64 v3 %endif - - %build + %global goppc64 power9 count: 1 - target: "spec" find: | @@ -20,17 +21,7 @@ actions: %else CFLAGS="%{tsan_buildflags} %{tsan_optflag}" CC=clang GOAMD64=v3 ./buildgo.sh %endif - count: 2 - - target: "spec" - find: | - export GOAMD64=v3 - replace: | - %ifarch x86_64_v2 - export GOAMD64=v2 - %else - export GOAMD64=v3 - %endif - count: -1 + count: 1 - modify_release: