Skip to content

Commit 5909a86

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 7ce0cd1 commit 5909a86

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
@@ -27,6 +27,7 @@ function main() {
2727
output="${output}.exe"
2828
fi
2929

30+
rm -f "${output}"
3031
CGO_ENABLED=0 \
3132
GOOS="${os}" \
3233
GOARCH=amd64 \

0 commit comments

Comments
 (0)