-
Notifications
You must be signed in to change notification settings - Fork 37.7k
doc: Add bash dependency of lint tests #24750
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
concept ack
concept ACK |
In a related issue - the default sed version fails on MacOS... It may be useful to add gsed to the list of homebrew dependancies. |
Since #24610 has been closed, concept ACK. |
If there are systems that ship an outdated bash, it may be better to reopen #24610 instead. A simple automated check is faster and more friendly than documentation, which needs to be searched and interpreted by a human. |
I agree. It would be more friendly. |
I'd prefer one external scripting dependency (Python), but if we insist on modern bash-isms, could do both #24610 and this. Both documenting and detecting dependencies makes sense. |
I have added a commit that adds the I agree switching to |
co-authored-by: brunoerg <brunoely.gc@gmail.com>
2f623e5
to
d8cc799
Compare
Also addressed @jarolrod 's comments on the doc changes, thanks for reviewing! |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crACK d8cc799
NACK. Agree with laanwj |
Thanks for the reviews but I will close this for now since I have already converted almost all of the offending code to Python and I will finish the rest today. I have not seen too many compatibility issues myself previously but I think converting to Python makes this also easier to maintain in the future because more developers are available. |
That's awesome! Thank you. |
This issue has already been the topic of #24610.
macOS, sadly, does not ship with a bash version that is compatible with all lint tests since they now include the usage of
mapfile
.mapfile
was introduced inbash
4.0 but macOS still uses 3.x because the newer version changed their license from GPL2 to GPL3. macOS has changed the default shell tozsh
but that doesn't help since bash 3.x is still installed and will be used due to the shebang. Also,zsh
does not havemapfile
the same waybash
has. Confusingly, thezsh
version of the command does something completely different than thebash
version.Including guard code was rejected in #24610 and I guess this is probably reasonable since only a hand full of developers will ever run into this. But I think it should still be mentioned in the docs.