-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
linkage: add --strict
flag to detect opportunistic linkage
#12454
Conversation
There was a previous discussion about making `brew linkage --test` fail for unrequested dependencies (#9172). I'm not sure what the outcome of that was, but it still seems like a good idea to try to help us find cases of opportunistic linkage as they happen rather than when they cause CI failures in another PR sometime later. Let's do this by adding a `--strict` flag to `brew linkage --test`. My intention is for `brew linkage --test --strict` failures to be warnings rather than errors in CI, which should mitigate some of the concerns about doing this that were raised in #9172.
Review period will end on 2021-11-22 at 10:19:40 UTC. |
Makes sense to me. I think we maybe used to do this (I can't remember) and the common issue was linking to recursive dependencies. |
Linking with recursive dependencies shouldn't cause a brew/Library/Homebrew/linkage_checker.rb Line 42 in 27a7629
If they do then that's a bug we can look at. |
@carlocab Perfect ❤️ |
Review period ended. |
See discussion at Homebrew/brew#12454.
See discussion at Homebrew/brew#12454.
See discussion at Homebrew/brew#12454.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?There was a previous discussion about making
brew linkage --test
failfor unrequested dependencies (#9172). I'm not sure what the outcome of
that was, but it still seems like a good idea to try to help us find
cases of opportunistic linkage as they happen rather than when they
cause CI failures in another PR sometime later.
Let's do this by adding a
--strict
flag tobrew linkage --test
. Myintention is for
brew linkage --test --strict
failures to be warningsrather than errors in CI, which should mitigate some of the concerns
about doing this that were raised in #9172.