-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
rubocops/patches: GitHub/GitLab patches should end with .patch #8701
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
rubocops/patches: GitHub/GitLab patches should end with .patch #8701
Conversation
Have this broken recently/before? The patch is slightly preferable, in my book, due to the increased metadata. |
No
I think it's okay to not have the patch metadata since we already usually add a comment to the merge request, for example: https://github.com/Homebrew/homebrew-core/blob/b599f82/Formula/gstreamer.rb#L31 Although, I'm fine with enforcing |
👍🏻 I'm OK with that, I don't feel strongly either way but I would also like to have them be consistent. |
84d6c3c
to
2212d70
Compare
ed103b0
to
9baabfe
Compare
Metadata can be important when backporting multi-commit patches (example). However, those are rare, plus they typically go on |
Currently failing because of existing patches ending with |
Yes please @SeekingMeaning! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
9baabfe
to
2f46cc2
Compare
2f46cc2
to
ea10192
Compare
Gonna merge this since the last stragglers have been fixed on both macOS and Linux. Thanks @SeekingMeaning! |
This means that if we're re-running old workflows, we get tons of errors unrelated to the pull request being tested: https://github.com/Homebrew/homebrew-core/pull/62208/checks?check_run_id=1297673335 Could this be avoided? |
brew style
with your changes locally?brew tests
with your changes locally?See discussion below
Old description
GitLab doesn't support
?full_index=1
for patch URLs, but instead we can use.diff
to get full indices. This PR adds a check for GitLab patches ending with.patch
that will be reported bybrew audit
brew audit gstreamer
:https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/40c994c.patch (short indices):
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/40c994c.diff (full indices):