bitter-ability-32190
12/15/2021, 9:07 PMdefault
for sources
on this page is malformed: https://www.pantsbuild.org/docs/reference-python_sources#codesourcescodehappy-kitchen-89482
12/15/2021, 9:11 PMhappy-kitchen-89482
12/15/2021, 9:11 PMbitter-ability-32190
12/15/2021, 9:12 PMhappy-kitchen-89482
12/15/2021, 9:53 PMhappy-kitchen-89482
12/16/2021, 2:18 AMhappy-kitchen-89482
12/16/2021, 2:18 AMhappy-kitchen-89482
12/16/2021, 2:18 AMhundreds-father-404
12/16/2021, 2:36 AMhappy-kitchen-89482
12/16/2021, 3:01 AMcurved-television-6568
12/16/2021, 6:41 AMhundreds-father-404
12/16/2021, 7:05 AMcurved-television-6568
12/16/2021, 7:20 AMcurved-television-6568
12/16/2021, 3:56 PMcurved-television-6568
12/16/2021, 4:03 PMPackageFieldSet
, but I canāt use that the way itās done there now.. as:
E AttributeError: type object 'PackageFieldSet' has no attribute 'required_fields'
curved-television-6568
12/16/2021, 4:04 PMcurved-television-6568
12/16/2021, 4:06 PMcurved-television-6568
12/16/2021, 4:06 PMcurved-television-6568
12/16/2021, 4:22 PMcurved-television-6568
12/16/2021, 4:25 PMhundreds-father-404
12/16/2021, 4:28 PMPackageFieldSet
(your new code) and inspect their `output_path`s to determine what file paths can be created. Compare those `output_path`s with the parsed paths, and if any are a match, infer a dep on the binary target
I think that will both handle go_binary
and handle when you override output_path
on a pex_binary
target. Wdyt?curved-television-6568
12/16/2021, 4:29 PMcurved-television-6568
12/16/2021, 4:29 PMhundreds-father-404
12/16/2021, 4:30 PMcapture all paths used when parsing DockerfileNot sure how to do that part. It's possible to set
output_path=foo.pex
or even output_path=foo
. We don't know if that's a path or not? Maybe we don't have to though, we don't aim for 100% coverage. Use a heuristic of if it has a file extension or path seperator (/)curved-television-6568
12/16/2021, 4:31 PMhundreds-father-404
12/16/2021, 4:31 PMCOPY
instruction, right? Rather than parsing all arbitrary strings as possible paths. Brilliantcurved-television-6568
12/16/2021, 4:32 PMcurved-television-6568
12/16/2021, 4:32 PMdockerfile
python lib.. itās been real easy to work with.hundreds-father-404
12/16/2021, 4:34 PMcurved-television-6568
12/16/2021, 4:38 PM