Skip to content

Commit bc09cd6

Browse files
committed
Fix Go 1.26 build compatibility: remove bin stubs before go build
Go 1.26 refuses to overwrite non-object files with 'go build -o'. Add 'rm -f "${output}"' before each go build invocation so the shell script stubs in bin/ are removed first.
1 parent 264c351 commit bc09cd6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function main() {
2929
output="${output}.exe"
3030
fi
3131

32+
rm -f "${output}"
3233
CGO_ENABLED=0 \
3334
GOOS="${os}" \
3435
go build \

0 commit comments

Comments
 (0)