Skip to content
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

formula_dependents: ensure dependencies are linked #659

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

bayandin
Copy link
Member

@bayandin bayandin commented Sep 2, 2021

This PR ensures that we have all dependencies (runtime and test) linked while we test a formula.

Here's an original issue:

  • Let's say we have 3 formulae in a test run A, B and C: A conflicts with B; C depends on B
  • We unlink B while testing A (as a conflicting one)
  • When we test C, B is still unlinked, and this could lead to a test failure for C

We got exactly this situation in

Fixes #544

\cc @carlocab @scpeters

lib/tests/formulae_dependents.rb Outdated Show resolved Hide resolved
lib/tests/formulae_dependents.rb Outdated Show resolved Hide resolved
@dawidd6 dawidd6 merged commit 28b29ea into Homebrew:master Sep 3, 2021
@bayandin bayandin deleted the link-dependencies branch September 3, 2021 10:46
@MikeMcQuaid
Copy link
Member

Thanks @bayandin!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should check for unlinked dependencies of all dependents, not just named formulae
5 participants