Skip to content
Discussion options

You must be logged in to vote

Hey @Skipants thanks for raising the question!

In example B, components/other_package will have a dependency violation if it uses a package without a dependency.
In this case, it's other_package's responsibility to make sure that it's only using packages it has an explicit dependency on.
In this case, it does not matter if the package it uses states it is "visible to" other_package – it's a dependency violation nonetheless.

In example A, merchandising creates a visibility violation in other_package even if it's listed as a dependency.

You're right that these two examples produce the same signal (i.e. a violation). The main differentiating factor here is that visibility lets a package say …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Skipants
Comment options

Answer selected by Skipants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants