-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: add CI to detect references #905
Conversation
d24b9d0
to
1ced60b
Compare
1ced60b
to
8a5b37b
Compare
Looks like some of them have
|
- Check for which patches are in use in `homebrew-core`, trimming the quotes and only getting the last part of the path. - Get all the patches in this repository. - Compare the two and print out the missing ones in the `homebrew-core` repository. - Add a TODO for deleting the unused patches, it might be nice for this workflow to do that once we know it's legit.
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.
Looks good but would rather automated removal rather than yet another manual task for people to check.
Co-authored-by: Bo Anderson <[email protected]>
Co-authored-by: Bo Anderson <[email protected]>
- Let's see how this goes.
|
permissions:
contents: write Or push as BrewTestBot using a push token but avoiding BrewTestBot here would be nice. |
Co-authored-by: Bo Anderson <[email protected]>
Co-authored-by: Bo Anderson <[email protected]>
https://github.com/Homebrew/formula-patches/tree/remove-unused-patches exists now. But I guess it also needs to create a PR? |
Or push straight to |
I'd be slightly uncomfortable pushing directly to master |
That's unfortunate, see #908 |
Should be able to set up a signing step like we do in all the other repos that commits as BrewTestBot |
🥳 #909 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'm not sure what to do with this. @Bo98 do you want to rewrite this in ruby and call it with |
@SMillerDev What's the blocker here, not sure I understand? |
The generated PR has some comments from Bo, but I'm not sure what to do with them or if we should do something with them. |
@SMillerDev Ok, I saw now, thanks. Yeh, I think this needs to eliminate the false positives. Fine to not delete things for a V1, not fine to attempt to delete them when still needed. Could always just add more conditionals to your Bash for now to exclude formulae with any head/OS/arch-specific patches or logic. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This should tell us when references are no longer in use.