Run release checks with the stock macOS Bash

This commit is contained in:
2026-09-06 19:16:00 -05:00
parent 537d26e359
commit fb2e2c5386
4 changed files with 114 additions and 3 deletions

View File

@@ -35,7 +35,10 @@ git ls-files --cached --others --exclude-standard -z |
diff -u go.mod "$temporary_dir/go.mod"
diff -u go.sum "$temporary_dir/go.sum"
mapfile -d '' go_files < <(git ls-files --cached --others --exclude-standard -z -- '*.go')
go_files=()
while IFS= read -r -d '' go_file; do
go_files+=("$go_file")
done < <(git ls-files --cached --others --exclude-standard -z -- '*.go')
if ((${#go_files[@]})); then
unformatted=$(gofmt -l -- "${go_files[@]}")
if [[ -n "$unformatted" ]]; then