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

Check fqn prefix for dependencies, not direct match. #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

FeepingCreature
Copy link
Contributor

Version of #5 that gathers the list of non-transitive dependencies in advance, as per conversation with @linkrope. I am not very sure if this is an improvement.

Allows a declared dependency 'a -> b' to satisfy a module dependency 'a.x.y -> b.z'.
…ency crossing that package boundary

ie. if you have 'a -> b', you can have a.x import b.y, but only if neither a nor b have dependencies going into or out of them from elsewhere.

a -> b, a -> a.x: allow a.x -> b.y
a -> b, a.x -> a.y: allow a.x -> b.y
a -> b, a.x -> z.x: don't allow a.x -> b.y
a -> b, z.x -> b.y: don't allow a.x -> b.y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant