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
gnu-getopt
cannot be used as dependency
#165752
Comments
It is something that maintainers should be warned about, so that's why the audit is failing. |
Sure, that would be good for the review, but then how can we add new formulas that need this dependency since it fails the CI? You've mentioned there could be a whitelist for that, but the only reference I could find is in |
Thanks for the tip, I've tried to add it there. Worth noting that this seems to only affect |
It's a new formula only audit yeah. This particular allowlist is sort of useless after the initial merge - we should probably replace it with a PR label or something. Or alternatively expand the audit to apply to everything rather than just |
Btw, still no luck: https://github.com/Homebrew/homebrew-core/actions/runs/8234501520/job/22516507190 Would be good to expand this to all, but for the case of |
Ah right, sorry I misread what that allowlist was for - it's for the reverse situation where OpenSSL might get detected as being provided by macOS when it isn't. In this case, we can override new formula audits - they're intentionally new formula only audits because we know they're not 100% accurate in all cases (they're there to catch cases where people list every system dependency regardless if they use extended features or not). You can revert that change and leave a note on the PR and we can merge it anyway if we see that audit is the only bit failing. |
macOS is a BSD-like operating system so it's unlikely it will ever ship GNU-only features. There's a lot of things in the command-line world that are BSD-only or GNU-only and some software only support one or the other. |
Welp, even more relevant than to keep the audit exception for |
See new formula attempt: #164352
What were you trying to do (and why)?
Add a
gnu-getopt
dependency for MacOS since it seems that it still does not have an enhanced versionWhat happened (include all command output)?
I have tried with:
but that results in:
Trying the suggested approach was not successful either because:
uses the MacOS version of getopt when on
sonoma
which still is not compatible.What did you expect to happen?
Have a way to include
gnu-getopt
dependencyOther references
The text was updated successfully, but these errors were encountered: