billowy-motherboard-58443
09/21/2020, 3:50 PMdependencies = [ "//:requests" ]
or have "ns/core" in bothaloof-angle-91616
09/21/2020, 3:52 PMpython_tests()
target declared in ns/config/test/BUILD
depends on something in ns/config/BUILD
? if so, then you wouldn't need to redeclare it, because dependencies apply transitively in python targets. what is the error you're seeing?billowy-motherboard-58443
09/21/2020, 3:52 PMbillowy-motherboard-58443
09/21/2020, 3:53 PMbillowy-motherboard-58443
09/21/2020, 3:53 PMaloof-angle-91616
09/21/2020, 3:54 PMbillowy-motherboard-58443
09/21/2020, 3:54 PMbillowy-motherboard-58443
09/21/2020, 3:54 PM15:48:36.42 [WARN] Couldn't remove cycle containing dirty nodes after 11 attempts; nodes in cycle:
and a ton of dataaloof-angle-91616
09/21/2020, 3:55 PMns/core
depends on something else that depends on ns/config
? i think ./pants dependees --transitive ns/config
will tell you if anything unexpected is transitively depending on itbillowy-motherboard-58443
09/21/2020, 3:56 PMbillowy-motherboard-58443
09/21/2020, 3:56 PMns/util:util
ns/util/tests:tests
aloof-angle-91616
09/21/2020, 3:57 PM./pants dependencies --transitive ns/core
billowy-motherboard-58443
09/21/2020, 3:57 PMaloof-angle-91616
09/21/2020, 3:57 PMns/config/tests
eitherbillowy-motherboard-58443
09/21/2020, 3:58 PM--transitive ns/config/tests
gives nothingbillowy-motherboard-58443
09/21/2020, 3:58 PMbillowy-motherboard-58443
09/21/2020, 3:59 PMbillowy-motherboard-58443
09/21/2020, 3:59 PMaloof-angle-91616
09/21/2020, 3:59 PMns/config
(except for //:mock
) and have it work -- is that right?aloof-angle-91616
09/21/2020, 3:59 PMbillowy-motherboard-58443
09/21/2020, 3:59 PMaloof-angle-91616
09/21/2020, 3:59 PM./pants dependencies --transitive ns/core
?aloof-angle-91616
09/21/2020, 4:00 PMdependencies
, not dependees
billowy-motherboard-58443
09/21/2020, 4:00 PMbillowy-motherboard-58443
09/21/2020, 4:00 PMbillowy-motherboard-58443
09/21/2020, 4:01 PMaloof-angle-91616
09/21/2020, 4:02 PMaloof-angle-91616
09/21/2020, 4:02 PMbillowy-motherboard-58443
09/21/2020, 4:02 PMaloof-angle-91616
09/21/2020, 4:03 PMns/config/BUILD
and ns/config/tests/BUILD
. in fact, that's somewhat preferred over putting it in just the one parent target.
(2) the cycle should only happen if there's a legitimate dependency cycle between dependencies declared in BUILD files, which you should be able to see. there is a shadow of a chance that this is a nondeterministic pantsd error, which you can check by running ./pants kill-pantsd
and then re-running the command