ambitious-student-8110407/11/2022, 4:34 PM
respect filesystem hierarchy? e.g. if I have something like this:
If I specify in
BUILD(a) ... foo/ BUILD(b) ...
but don’t specify a resolve in
, does it / can we make it follow what’s in
bitter-ability-3219007/11/2022, 4:38 PM
only applies to its generated targets, AND `pyhthon_sources`'s default field value for
isn't recursive. So,
has metadata only for this directory unless told otherwise. You could switch the
field to be recursive (although there are drawbacks)
Or eagerly await
python_soureces( # Not quite right, but you get the idea sources=["**/*.py"], ... )
(here's the markdown documentation for this upcoming feature in 2.14) https://github.com/pantsbuild/pants/pull/15836/files#diff-f75e89f4936a42076eaf07a1a288169b36290b60b9095bb6a01cf22b95adf5e6
feature is our first giant leap on the path to less metadata, and specifically leaning in to hierarchical metadata.
ambitious-student-8110407/11/2022, 4:43 PM
ignore a requirements file?
bitter-ability-3219007/11/2022, 4:44 PM
witty-crayon-2278607/11/2022, 4:52 PM
ambitious-student-8110407/11/2022, 4:53 PM
witty-crayon-2278607/11/2022, 4:54 PM
not to recreate it?
ambitious-student-8110407/11/2022, 5:02 PM
we will still have to create multiple resolves?
witty-crayon-2278607/11/2022, 5:04 PM
in one of the runs) if you just marked the file as being in a separate resolve, but not the tests.
ambitious-student-8110407/11/2022, 5:05 PM
you could probably continue to run pants twice (and usebut the tests will depend on the target of thein one of the runs) if you just marked the file as being in a separate resolve, but not the tests.
so they’d have to be in the save resolve, don’t they?
witty-crayon-2278607/11/2022, 5:08 PM
ambitious-student-8110407/11/2022, 5:09 PM
with the default resolve successfully run, while the test code is also in the default resolve, but the requirements target is in a separate resolve
file requirements target, how can
succeed? doesn’t it figure that the test code depends on that constraints file? which is inconsistent with the fact that the constraints target is in a different resolve?
only look at the requirements that are used in targets in this resolve?
witty-crayon-2278607/11/2022, 5:12 PM
or doescorrect: all of the requirements targets which are labeled with a resolve are used in the lockfile, but no source targets matteronly look at the requirements that are used in targets in this resolve?
ambitious-student-8110407/11/2022, 5:18 PM