some-morning-1340
12/19/2022, 4:09 PM./pants tailor <path-to-removed-file> , the BUILD file is not regenerated even if there are still unmapped targets in that directory. Is this expected behaviour?
This also happens if I run ./pants --changed-since=<commit-with-removed-file> tailorhappy-kitchen-89482
12/19/2022, 4:39 PM./pants tailor <path to directory containing removed file> ?happy-kitchen-89482
12/19/2022, 4:39 PMtailor acts on dirssome-morning-1340
12/19/2022, 9:29 PM./pants --changed-since=... tailor still doesn’t (which I’m assuming is because —changed-since generates a list of files). To get around this, we could iterate through all changed files, grab the associated directory, then call tailor. But seems like having tailor also work on the file level would be a better fix?happy-kitchen-89482
12/20/2022, 1:55 AMhappy-kitchen-89482
12/20/2022, 1:55 AM--changed-since works, you're righthappy-kitchen-89482
12/20/2022, 1:56 AMhappy-kitchen-89482
12/20/2022, 1:56 AMsome-morning-1340
12/20/2022, 4:40 PM./pants --changed-since=… tailor does not regenerate removed BUILD files?some-morning-1340
12/21/2022, 8:13 PM./pants --changed-since=origin/main tailor in this repo https://github.com/njgrisafi/pants-example/tree/example-tailor-issue) @happy-kitchen-89482happy-kitchen-89482
12/21/2022, 9:13 PM./pants tailor path/to/BUILD should do the same thing as ./pants tailor path/to, and I think that would take care of this.happy-kitchen-89482
12/21/2022, 9:14 PMsome-morning-1340
12/21/2022, 9:32 PM