rubocops/patches: GitHub/GitLab patches should end with .patch#8701
rubocops/patches: GitHub/GitLab patches should end with .patch#8701jonchang merged 1 commit intoHomebrew:masterfrom
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 stylewith your changes locally?brew testswith your changes locally?See discussion below
Old description
GitLab doesn't support
?full_index=1for patch URLs, but instead we can use.diffto get full indices. This PR adds a check for GitLab patches ending with.patchthat will be reported bybrew auditbrew audit gstreamer:https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/40c994c.patch (short indices):
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/40c994c.diff (full indices):