proud-dentist-22844
04/12/2021, 2:59 AMhappy-kitchen-89482
04/12/2021, 3:12 AMsources=
of a target, or files that are not depended on by any other target?proud-dentist-22844
04/12/2021, 3:41 AMsources=
of any target (candidates for inclusion in resources
or files
targets)happy-kitchen-89482
04/12/2021, 4:35 AMhappy-kitchen-89482
04/12/2021, 4:36 AM./pants filedeps path/to/dir::
will show you all the files that are owned by any targethappy-kitchen-89482
04/12/2021, 4:36 AMls
or find
and subtracthappy-kitchen-89482
04/12/2021, 4:37 AMtailor
that could be adapted to do what you suggesthappy-kitchen-89482
04/12/2021, 4:37 AMhappy-kitchen-89482
04/12/2021, 4:38 AMtailor
is there for, it's just not been implemented for resources yethundreds-father-404
04/12/2021, 6:04 AMcurved-television-6568
04/12/2021, 7:26 AM./pants orphans path/to/dir::
(suggested feature.. 😉 )hundreds-father-404
04/12/2021, 7:46 AMcurved-television-6568
04/12/2021, 7:55 AMtailor
goal about creating BUILD files? Just wondering how my neutrons are expected to connect a desire to list orphan files as a subcommand to that goal.. 🙂 (to me, feels like an implementation shortcut, knowing that the functionality to implement it is available there… but from a usability perspective it feels unintuitive)curved-television-6568
04/12/2021, 7:58 AM--dry-run
to present which files would be addressed.. so ./pants tailor --dry-run --orphans
to me would mean to present BUILD files that would be created for which currently orphan files, and also include any files that would still be orphans, that didn’t have any target tailored for them.proud-dentist-22844
04/12/2021, 12:11 PMThat would be tricky to automatically determine whether something should be files vs resources (which is also very confusing for humans...one of our more confusing concepts)I'm not asking to determine files vs resources automatically. The idea for
./pants orphans
is more like what I'm looking for: a list of files that are not included in any targets.happy-kitchen-89482
04/12/2021, 3:46 PM