curved-television-6568
12/09/2021, 7:54 AMcurved-television-6568
12/09/2021, 7:56 AMrequirements.txt
file. Using the python_requirements
target I can turn that into a bunch of generated python_requirement
targets.
Now, if I change one of the requirements in requirements.txt
, is there a way to single out that python_requirement
target so I don’t have to rebuild everything that depends on any generated target from those requirements, but only the one that was actually changed?curved-television-6568
12/09/2021, 7:57 AM--changed-since
option, and that treats the whole file as a single unit, which is a bit unfortunate (I have another target gen using another kind of input source file)curved-television-6568
12/09/2021, 8:11 AMcurved-television-6568
12/09/2021, 8:32 AM$ ./pants dependees mirror/images.txt
09:30:53.15 [ERROR] 1 Exception encountered:
ResolveError: No owning targets could be found for the file `mirror/images.txt`.
Please check that there is a BUILD file in the parent directory mirror with a target whose `sources` field includes the file. See <https://www.pantsbuild.org/v2.9/docs/targets> for more information on target definitions.
You may want to run `./pants tailor` to autogenerate your BUILD files. See <https://www.pantsbuild.org/v2.9/docs/create-initial-build-files>.
If you would like to ignore un-owned files, please pass `--owners-not-found-behavior=ignore`.
$ ./pants peek mirror:mirror
[
{
"address": "mirror:mirror",
"target_type": "docker_mirror_images",
"description": null,
"overrides": {},
"source_raw": "images.txt",
"sources": [
"mirror/images.txt"
],
"tags": null
}
]
From what peek
tells me, my target gen docker_mirror_images
has mirror/images.txt
as its sources, so why do I get the unowned file error above.. ?curved-television-6568
12/09/2021, 8:55 AMcurved-television-6568
12/09/2021, 9:34 AMlist ::
etc…curved-television-6568
12/09/2021, 9:36 AMcurved-television-6568
12/09/2021, 1:28 PMhundreds-father-404
12/13/2021, 7:45 PMpython_requirements
as provided by Pants? Reminder that is using the old CAOF API rather than target generatorscurved-television-6568
12/13/2021, 8:34 PMcurved-television-6568
12/13/2021, 8:35 PMpython_requirement
as example, as it has the same semantics from a user perspective.