cold-vr-15232
10/08/2023, 10:09 PMapps/BUILD:
__dependencies_rules__(
({"type": python_sources}, "!//apps/**/*", "*"),
)
apps/*/BUILD:
__dependencies_rules__(
({"type": python_sources}, "*"),
extend=True,
)curved-television-6568
10/09/2023, 2:08 AM# apps/*/BUILD
__dependencies_rules__(
(
(python_sources, python_source),
"/**/*", # Allow all sources in this app to depend on anything in the current subtree
"!/../**/*", # Deny depending on any (other) apps (the previous rule will match before this one to keep the current app as allowed)
)
)
Having said that, I think you could get away with a single rule at the apps level:
# apps/BUILD
__dependencies_rules__(
(
(python_sources, python_source),
"./**/*", # Always allow anything from a source's current subtree.
"!//apps/**/*", # Deny depending on (other) apps.
)
)
Uhm, or not. As you'd not be able to depend on sibling parts higher up from the same app. I'll keep it any way to illustrate my train of thought on this, perhaps nudges some ideas.. 😉curved-television-6568
10/09/2023, 2:09 AM/appsfresh-cat-90827
10/09/2023, 8:49 AMcold-vr-15232
10/09/2023, 9:52 AMfresh-cat-90827
10/09/2023, 9:53 AMfresh-cat-90827
10/09/2023, 9:54 AMcurved-television-6568
10/09/2023, 1:55 PM