hundreds-father-404
08/05/2020, 12:49 AM--changed-since
should handle deleted files in Pants 2.0. Currently, we match the original owning target, whereas the rest of --changed-since
will only ever use generated subtargets (1 target per source file)
https://github.com/pantsbuild/pants/pull/10511 doesn’t behave great with that model. It changes it so that we always generate a subtarget if the original target has sources. This means that a deleted file would result in every possible generated subtarget being used from the original owning target. Say the original target has 5 source files, and you deleted one; we’ll run on those 4 still-existing files.
I don’t think that behavior makes a ton of sense in a file-centric world? Maybe we no longer cause a deleted file to trigger Pants to run?hundreds-father-404
08/05/2020, 12:50 AMfast-nail-55400
08/05/2020, 12:52 AMwitty-crayon-22786
08/05/2020, 12:58 AMwitty-crayon-22786
08/05/2020, 1:00 AMwitty-crayon-22786
08/05/2020, 1:00 AMwitty-crayon-22786
08/05/2020, 1:02 AMwitty-crayon-22786
08/05/2020, 4:37 PMresources
target) this is definitely still a thing.