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
Migrate license mismatch allowlist to Homebrew/core #9178
Migrate license mismatch allowlist to Homebrew/core #9178
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.
👍🏻 to merge after typo resolved.
Thanks, both! I'm going to spend some time reworking the logic here now that #9187 has been merged. I'm planning on extracting the logic that handles the lists to a new location so it can be used by other modules as well (e.g. PyPI for #9185). Thoughts on:
|
I prefer keeping |
Okay, that's fair. How about going with directories that end in I'm trying to reduce the number of hardcoded files so adding lists in the future is pretty easy. |
4641cd5
to
1bb2d7c
Compare
Okay, I've reworked the handling of lists a little bit. Now, all directories that end in There are
|
That's a bit too magic for my liking.
Do we anticipate having more than one list for PyPI? If not: YAGNI. Sorry to keep jerking you around here. I'm happy for you to not make any code changes until we're agree on the implementation (if that works for you)? I don't mind you making changes back and forth but I don't want to waste your time (if you feel like I am). |
Okay, I think that's fair. Right now there are some constants in
Probably not so fair point.
No worries! Not a waste of time. Timezones are a little tricky here because most of my free time is after the European maintainers go to bed, it seems, so I'm just trying to have workable solutions in place for the morning 😄 So, moving forward, are we thinking:
So then, my question:
|
Agreed 👍🏻
Yeh, I think this is probably required before we can figure out whether it's best to have one-or-more new directories or one-or-more new files in the repo root.
Yup 👍🏻 |
Sorry, missed this bit. I'm more pointing to the principle here; I think it's easy enough to change these when we need them more rather than pre-planning things just in case we need them in future. |
I should have some time in the next couple of hours to look into this a little more. I'll try to find all of the non-audit lists that will need to be migrated eventually and then, maybe, we can make a better decision (I'll need to find these lists in the future, anyway, so may as well do it now). |
Thanks again @Rylan12, you're doing great work ❤️ |
Okay, I've looked through and found lists that should be migrated in the following categories:
What I'm envisioning is that we can use {
pypi_automatic_resource_update_list: {
"foo" => false,
"bar" => "bar[abc]",
"baz" => {
"package_name" => "baz[xyz]"
"extra_packages" => ["a", "b", "c"],
"exclude_packages" => ["x", "y", "z"]
}
},
livecheck_github_special_cases: [
"foo",
"bar",
"baz"
]
} (the contents are just an example) However, none of the questions listed above will affect this PR, so I'm going to push forward with this (modifying to keep the audit directory in |
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> Co-authored-by: Markus Reiter <me@reitermark.us>
1bb2d7c
to
67e4e78
Compare
👍🏻
👍🏻 to either
Given the above: I'd be tempted to put them in either files or directories relating to the command(s) that will run them.
👍🏻
👍🏻 |
Okay. May as well discuss this in #9185. For now, is this PR good to go? If so, I'll start the merge. I don't think we'll need to wait for linuxbrew-core merges as this change isn't breaking CI. |
brew style
with your changes locally?brew tests
with your changes locally? (I've run the audit tests only)brew man
locally and committed any changes? (no changes)This PR migrates the
PERMITTED_FORMULA_LICENSE_MISMATCHES
audit allowlist to Homebrew/core.Additionally, I added some more tests for the lists migrated in #9039
Prompted by Homebrew/homebrew-core#59828
Corresponding Homebrew/core PR (should be merged at the same time or before): Homebrew/homebrew-core#65061