8000 dist: use bash for build script by dajiaohuang · Pull Request #1758 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

dist: use bash for build script - #1758

Open
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/dist-build-bash-shebang
Open

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/dist-build-bash-shebang

Conversation

@dajiaohuang
@dajiaohuang dajiaohuang commented Oct 1, 2026 •
Copy link
Copy Markdown

dist/build.sh uses Bash arrays but declares /bin/sh as its interpreter. POSIX shells such as dash reject the array assignment before the build starts. Declare Bash explicitly and keep fail-fast behavior with set -e.

Validation: Bash 5.2 -n passed; dash -n reproduced the syntax error at the array loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0