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
[Merged by Bors] - ci(*): run style lint in parallel job, fix update-copy-mod-doc-exceptions.sh #4513
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.
Thanks 🎉
bors merge
Pull request successfully merged into master. Build succeeded: |
|
||
# use C locale so that sorting is the same on macOS and Linux | ||
# see https://unix.stackexchange.com/questions/362728/why-does-gnu-sort-sort-differently-on-my-osx-machine-and-linux-machine | ||
LC_ALL=C find src archive -name '*.lean' | xargs ./scripts/lint-copy-mod-doc.py | sort > scripts/copy-mod-doc-exceptions.txt |
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.
This does not have the effect you think it does. LC_ALL
only applies to the find
. You need to write LC_ALL=C sort
instead.
# Replace the current exceptions file with an empty file | ||
> scripts/copy-mod-doc-exceptions.txt |
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.
This is already implicitly happening on the line below, with the > scripts/copy-mod-doc-exceptions.txt
.
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.
github makes it really hard to add review comments after a PR has been merged. You can't use suggestions!
Additionally you are required to provide a comment such as this one.
@gebner Thanks! Turns out I don't understand how pipes and redirection actually work... PR incoming. |
…19133) This hopefully closes [#4513](leanprover-community/mathlib4#4513) (or at least mitigates it) and will settle [!4#4373](leanprover-community/mathlib4#4373) in mathlib3.
…19133) This hopefully closes [#4513](leanprover-community/mathlib4#4513) (or at least mitigates it) and will settle [!4#4373](leanprover-community/mathlib4#4373) in mathlib3. Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Followup to #4486: