adorable-engine-71736
11/25/2021, 4:55 PM./pants check my.package::
where my.package
depends on other.package
and other.package
is in the same repo it pulls in the correct version of other.package
otoh, when i run ./pants check ::
it seems to use the version of other.package
on the filesystem - ie doesnt respect any specified versions or pull in the last published from pypihappy-kitchen-89482
11/25/2021, 8:00 PMother.package
live in the same repo as my.package
but my.package
consumes it as a third-party requirement?adorable-engine-71736
11/25/2021, 8:01 PMhappy-kitchen-89482
11/25/2021, 8:01 PM./pants check ::
runs the typechecker on all the sources in the repo, so if `other.package`'s sources are in the repo, I'd expect them to be checked from source. So you're seeing the expected behavior there.happy-kitchen-89482
11/25/2021, 8:02 PM./pants check my.package::
, I would have expected that to depend on the first party source version of other.package
as wellhappy-kitchen-89482
11/25/2021, 8:02 PMhappy-kitchen-89482
11/25/2021, 8:02 PMhappy-kitchen-89482
11/25/2021, 8:03 PMadorable-engine-71736
11/25/2021, 8:03 PMadorable-engine-71736
11/25/2021, 8:03 PMadorable-engine-71736
11/25/2021, 8:04 PMadorable-engine-71736
11/25/2021, 8:04 PMpants check $(pants roots | tr '\n' ',' | sed 's/,/:: /g' -)
adorable-engine-71736
11/25/2021, 8:04 PMadorable-engine-71736
11/25/2021, 8:05 PMmy.package::
and runing my.package
in ::
happy-kitchen-89482
11/25/2021, 8:08 PM::
globs over all sources in your repo, including other.package
happy-kitchen-89482
11/25/2021, 8:08 PMadorable-engine-71736
11/25/2021, 8:09 PMhappy-kitchen-89482
11/25/2021, 8:09 PMmy.package::
, I would have expected dependency inference to infer a dependency from my.package
on other.package
, all in sourceadorable-engine-71736
11/25/2021, 8:10 PMhappy-kitchen-89482
11/25/2021, 8:10 PM./pants check my.package::
is pulling in other.package
from a published dist?adorable-engine-71736
11/25/2021, 8:10 PMhappy-kitchen-89482
11/25/2021, 8:10 PMother.package
, so dep inference should actually give you a warning about thatadorable-engine-71736
11/25/2021, 8:10 PMhappy-kitchen-89482
11/25/2021, 8:11 PMother.package
in `my.package`'s BUILD file?adorable-engine-71736
11/25/2021, 8:11 PMadorable-engine-71736
11/25/2021, 8:11 PMadorable-engine-71736
11/25/2021, 8:11 PMadorable-engine-71736
11/25/2021, 8:11 PMadorable-engine-71736
11/25/2021, 8:13 PMcheck
behaviouradorable-engine-71736
11/25/2021, 8:14 PMhappy-kitchen-89482
11/25/2021, 9:33 PMother.package
in normal use, but when you reference ::
Pants interprets that as "use all the local sources"happy-kitchen-89482
11/25/2021, 9:34 PMhappy-kitchen-89482
11/25/2021, 9:34 PMhappy-kitchen-89482
11/25/2021, 9:34 PMhappy-kitchen-89482
11/25/2021, 9:35 PMhappy-kitchen-89482
11/25/2021, 9:35 PMadorable-engine-71736
11/26/2021, 2:42 PMpants check ::
fast-nail-55400
11/26/2021, 5:49 PMhappy-kitchen-89482
11/26/2021, 5:58 PMhappy-kitchen-89482
11/26/2021, 5:58 PM./pants check ::
happy-kitchen-89482
11/26/2021, 6:01 PMhappy-kitchen-89482
11/26/2021, 6:38 PMhappy-kitchen-89482
11/26/2021, 6:38 PMhappy-kitchen-89482
11/26/2021, 6:39 PMfast-nail-55400
11/26/2021, 6:41 PMfast-nail-55400
11/26/2021, 6:43 PMfast-nail-55400
11/26/2021, 6:54 PM