macOS: license-header and dependency-license tooling fails under stock bash 3.2
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 218
- Forks
- 72
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 427
Description
tools/ci/check-license-headers, tools/ci/check-dependency-licenses, and
tools/scripts/collect-notices use bash 4+ features (declare -A, mapfile) and
crash with a raw syntax error under the stock /bin/bash 3.2 shipped on macOS.
Example:
tools/ci/check-license-headers: line 573: declare: -A: invalid option
Expected: a clear, actionable error, or these tools work under bash 3.2.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tools/ci/check-license-headers, tools/ci/check-dependency-licenses, and tools/scripts/collect-notices, running them under the stock macOS /bin/bash 3.2 to reproduce the syntax failure. Check the declare -A and mapfile usage; done means each tool either works under Bash 3.2 or reports a clear, actionable error instead of a raw syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- ci-cd, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100