Skip to content

Specify shell to make sure macOS make respects PATH#267

Merged
mcous merged 2 commits intoviamrobotics:mainfrom
mcous:makefile-spec-shell
Jun 5, 2023
Merged

Specify shell to make sure macOS make respects PATH#267
mcous merged 2 commits intoviamrobotics:mainfrom
mcous:makefile-spec-shell

Conversation

@mcous
Copy link
Copy Markdown
Contributor

@mcous mcous commented Jun 2, 2023

This PR adds SHELL := bash to the Makefile because without it macOS make does not respect export PATH. Anecdotally, this is not the first time I've seen this. For fun, also see this Stack Overflow post from 2014!

This is probably a good thing to do by default in our Makefiles anyway. For example, it's part of this style guide's default prologue. From that styleguide, setting .SHELLOPTIONS seems like an potentially good move to consider, too

@mcous mcous requested a review from Otterverse June 2, 2023 20:14
@mcous mcous changed the title Specify shell to make sure macOS make behaves Specify shell to make sure macOS make respects PATH Jun 2, 2023
Copy link
Copy Markdown
Contributor

@Otterverse Otterverse left a comment

Choose a reason for hiding this comment

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

LGTM

@mcous mcous added bug Something isn't working and removed bug Something isn't working labels Jun 5, 2023
@mcous mcous merged commit 3c077bf into viamrobotics:main Jun 5, 2023
@mcous mcous deleted the makefile-spec-shell branch June 5, 2023 11:44
pstrutz added a commit to pstrutz/api that referenced this pull request Jun 23, 2023
…#267)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants