-
Notifications
You must be signed in to change notification settings - Fork 38.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
jarolrod
left a comment
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 <[email protected]>
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. |
brunoerg
left a comment
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.mapfilewas introduced inbash4.0 but macOS still uses 3.x because the newer version changed their license from GPL2 to GPL3. macOS has changed the default shell tozshbut that doesn't help since bash 3.x is still installed and will be used due to the shebang. Also,zshdoes not havemapfilethe same waybashhas. Confusingly, thezshversion of the command does something completely different than thebashversion.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.