Skip to content

fix: support macOS system Bash in installer - #302

Merged
frostming merged 1 commit into
bubbuild:mainfrom
kemingy:fix/macos-bash-installer
Sep 10, 2026
Merged

frostming merged 1 commit into
bubbuild:mainfrom
kemingy:fix/macos-bash-installer

Conversation

@kemingy

@kemingy kemingy commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

macOS ships Bash 3.2 as its system Bash. Because Bub’s public installer uses #!/usr/bin/env bash, it should work with that default shell instead of requiring users to install a newer Bash before installing Bub.

The installer currently fails on macOS when set -u expands an empty optional-dependency array, and later calls mapfile, which was introduced in Bash 4.

  • collect resolver arguments in a non-empty array before adding optional dependencies
  • replace mapfile with a Bash 3.2-compatible line-reading loop
  • preserve the existing preset resolution behavior on newer Bash versions

@frostming
frostming merged commit 3db09b6 into bubbuild:main Sep 10, 2026
5 checks passed
@kemingy
kemingy deleted the fix/macos-bash-installer branch September 10, 2026 23:57
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.

2 participants