Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: rely on bash from 'PATH' #788

Merged
merged 1 commit into from
Sep 25, 2022

Conversation

endocrimes
Copy link
Member

/bin/bash isn't guaranteed to exist on any platform (unlike /bin/sh), here we switch to relying on bash from the path instead, this lets us build on systems like NixOS without breaking other systems.

Signed-off-by: Danielle Lancashire dani@builds.terrible.systems


Tested on NixOS (amd64) and macOS Monterey (arm)

/bin/bash isn't guaranteed to exist on any platform (unlike /bin/sh),
here we switch to relying on bash from the path instead, this lets us
build on systems like NixOS without breaking other systems.

Signed-off-by: Danielle Lancashire <dani@builds.terrible.systems>
Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching this!

LGTM

@radu-matei radu-matei merged commit 5172950 into fermyon:main Sep 25, 2022
@endocrimes endocrimes deleted the dani/buildrs-portable branch September 25, 2022 17:29
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