Merge pull request 'fix(autopatch): Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference conf' (#4) from agent-fix/a10-20260601-050203 into a10

Reviewed-on: #4
This commit is contained in:
eabdullin 2026-06-01 08:20:38 +00:00
commit c29ffaade6

View File

@ -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: