fix(autopatch): Updated find string in replace action #2: replaced the obsolete '%ifarch aarch64 / %bcond_without ignore_tests / %bcond_ #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "agent-fix/a10s-20260424-014020"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated fix by autopatch agent.
Summary: Updated find string in replace action #2: replaced the obsolete '%ifarch aarch64 / %bcond_without ignore_tests / %bcond_with ignore_tests / %endif' block with '%global fail_on_tests 1' as the anchor for inserting the race detector globals.
Root cause
The upstream golang spec changed from using '%bcond_without/with ignore_tests' (conditioned on %ifarch aarch64) to a simpler '%global fail_on_tests 1' definition. The ReplaceAction was trying to find the old conditional bcond block which no longer exists in the spec. The fix updates the find string to match the new '%global fail_on_tests 1' line (which is unique in the spec), and updates the replace string to append the '%global race 1 / %ifarch riscv64 / %global race 0 / %endif' block after it. The reference branch (a10) had the same outdated config, so the fix was derived independently from spec analysis.
Original error
Type:
ActionNotAppliedErrorPackage:
golang| Webhook branch:c10s