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

Add make format command #568

Merged
merged 6 commits into from
Mar 7, 2023
Merged

Add make format command #568

merged 6 commits into from
Mar 7, 2023

Conversation

leplatrem
Copy link
Contributor

@leplatrem leplatrem requested a review from a team as a code owner March 3, 2023 10:08
@leplatrem leplatrem added the dev Enhancements to development environment label Mar 3, 2023
@leplatrem leplatrem force-pushed the add-format-directive branch from 3909172 to 37403e5 Compare March 3, 2023 14:34
Copy link
Contributor

@grahamalama grahamalama left a comment

Choose a reason for hiding this comment

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

One question about the shebang and shell arguments, and the rest of the comments are more "thinking out loud".

Comment on lines -1 to +3
#!/bin/bash
#!/bin/sh

set -euo pipefail
set -e
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the motivation for these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, initially I was going to suggest keeping this the way it is and migrating JBI to "bash strict mode".

But turns out there are some gotchas with that approach as well.

So, maybe -euo pipefail is "safer", if not too safe, but this could also be fine as is, since I'm less convinced about the safety that these flags provide.

bin/lint.sh Outdated Show resolved Hide resolved
bin/lint.sh Show resolved Hide resolved
@leplatrem leplatrem merged commit 5c6e883 into main Mar 7, 2023
@leplatrem leplatrem deleted the add-format-directive branch March 7, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Enhancements to development environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants