linkage_checker: Distinguish indirect deps from undeclared deps #3785
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
linkage_checker
tests yet, and I don't know where to start for that.brew style
with your changes locally? No, but I don't think it's a regression.brew tests
with your changes locally?Follows up on #2297 and Homebrew/homebrew-core#23933 (comment).
This modifies
brew linkage
to separate out the "undeclared dependencies" in to two lists: an "indirect dependencies" list for linkage dependencies that are picked up transitively but not directly declared in the formula, and "undeclared dependencies" for those that are not in the recursive dependencies at all.Before:
After:
The
brew style
error:That's from a line not touched by this PR.
If tests are necessary - should I just dump a pre-built keg with known linkage qualities in to the test fixtures? Or install a formula with known linkage properties? Or...?