loud-laptop-17949
11/21/2022, 9:47 PMloud-laptop-17949
11/21/2022, 9:47 PMloud-laptop-17949
11/21/2022, 9:47 PM__init__.py
in the current and parent directory are inferred.loud-laptop-17949
11/21/2022, 9:47 PMloud-laptop-17949
11/21/2022, 9:47 PMsparse-lifeguard-95737
11/21/2022, 9:49 PMcurved-television-6568
11/21/2022, 10:13 PMcurved-television-6568
11/21/2022, 10:14 PMcurved-television-6568
11/21/2022, 10:14 PMcurved-television-6568
11/21/2022, 10:15 PMcurved-television-6568
11/21/2022, 10:17 PMsparse-lifeguard-95737
11/21/2022, 10:17 PMsparse-lifeguard-95737
11/21/2022, 10:18 PMsparse-lifeguard-95737
11/21/2022, 10:22 PMimport-linter
(https://import-linter.readthedocs.io/en/stable/contract_types.html). weâll typically introduce new rules before our codebase is completely in compliance to âstop the bleedingâ, and set all the ignore_imports
for existing rule violations. if we arenât able to specify per-target exceptions then weâd need to keep import-linter
around until weâve either broken all the bad imports or majorly reorganized our codebase (both of which will take a long while)busy-vase-39202
11/21/2022, 10:32 PMcurved-television-6568
11/21/2022, 10:36 PMcurved-television-6568
11/21/2022, 10:36 PM-ldebug
though, in case youâve not seen those yet⊠đhappy-kitchen-89482
11/21/2022, 10:42 PM:
as indicating an address, itâs pretty unlikely to have a literal :
in a pathhappy-kitchen-89482
11/21/2022, 10:43 PMcurved-television-6568
11/21/2022, 10:52 PMTargetAdaptors
in this implementationâŠcurved-television-6568
11/21/2022, 10:54 PMcurved-television-6568
11/21/2022, 10:54 PMcurved-television-6568
11/21/2022, 10:55 PMcurved-television-6568
11/22/2022, 2:22 AMpants.engine.internals.dep_rules.DependencyRuleActionDeniedError: src/python/pants/backend/visibility/rules.py has 2 dependency violations:
* src/python/pants/backend/explorer/BUILD: '!*' : DENY python_sources src/python/pants/backend/visibility/rules.py -> python_sources src/python/pants/backend/explorer/graphql/setup.py
* src/python/pants/backend/explorer/BUILD: '!*' : DENY python_sources src/python/pants/backend/visibility/rules.py -> python_sources src/python/pants/backend/explorer/server/uvicorn.py
and
pants.backend.visibility.rule_types.BuildFileVisibilityRulesError: There is no matching rule from the `__dependencies_rules__` defined in src/python/pants/engine/internals/BUILD for the `python_tests` target src/python/pants/engine/internals/dep_rules_test.py:tests for the dependency on the `python_test_utils` target //conftest.py:test_utils
Consider adding the required catch-all rule at the end of the rules spec. Example adding a "deny all" at the end:
(('*',), 'not/matching', '!this/either', '!*')
where the BUILD file has:
__dependencies_rules__(("*", "not/matching", "!this/either"),)
PR will likely be coming sometime tomorrowâŠ
any suggestions for improving the phrasing of the above, or information to include most welcome đcurved-television-6568
11/22/2022, 2:24 AMBuildFileVisibilityRulesError
so will it pick out the matching rule spec for the target in question based on the target globs for the rules in the BUILD file for the example in the message đcurved-television-6568
11/23/2022, 8:22 PM"__init__.py"
rule before any deny rules to allow them could go a long way..loud-laptop-17949
11/23/2022, 9:58 PMloud-laptop-17949
11/23/2022, 9:59 PMcurved-television-6568
11/24/2022, 12:23 AM