mysterious-waiter-14207
08/04/2022, 12:25 PMdependency_rule("/modules/core/application/*", allowed=["/modules/core/domain/*"])
What would be the best matching utility within pants for that?wide-midnight-78598
08/04/2022, 12:32 PMmysterious-waiter-14207
08/04/2022, 12:44 PMhappy-kitchen-89482
08/04/2022, 3:25 PMhappy-kitchen-89482
08/04/2022, 3:27 PMlib
must not depend on anything tagged with app
.happy-kitchen-89482
08/04/2022, 3:27 PMhappy-kitchen-89482
08/04/2022, 3:28 PMmysterious-waiter-14207
08/06/2022, 7:26 AMvisibility
feature, but I don't think it covers correctly the different contexts. For example, it make sense for the application layer (e.g /micro-service-1/application
) to only be visible to the anything within /micro-service-1/application
, but the contract layer (/micro-service-1/contract
) cannot and shouldn't know which other micro-services is allowed to consume it. That should be defined at the consumer level.
2. I think inheritance is important here, both for visibility
and the linter solution. Otherwise to manage it one would have to repeat same configuration over a lot of BUILD files, which is error-prone.
3. I think both visibility field and a linter could cover both contexts.mysterious-waiter-14207
08/06/2022, 7:29 AM/micro-services::
?mysterious-waiter-14207
08/06/2022, 7:29 AMmicro-services/core::
?happy-kitchen-89482
08/06/2022, 7:40 PM./pants
, or is this a string that appears in a rule definition.happy-kitchen-89482
08/06/2022, 7:42 PMmysterious-waiter-14207
08/08/2022, 5:17 PMmysterious-waiter-14207
08/08/2022, 8:16 PM