<#20503 Deleted files cause `pants tailor` with `-...
# github-notifications
c
#20503 Deleted files cause `pants tailor` with `--changed-since` to fail Issue created by blimmer Describe the bug I use the following command in CI to validate the monorepo, as recommended by the docs:
Copy code
> pants \
	  --changed-since=origin/main \
	  tailor --check \
	  update-build-files --check \
	  lint
However, if I delete a package, including its
BUILD
file in a PR, the
--changed-since
flag causes
tailor
to try to run on those files, which
pants
blows up on:
Copy code
16:40:57.91 [ERROR] 1 Exception encountered:

Engine traceback:
  in `tailor` goal

IntrinsicError: Unmatched glob from `--changed-since`: "aws/projects/my_project_name/*"

Do the file(s) exist? If so, check if the file(s) are in your `.gitignore` or the global `pants_ignore` option, which may result in Pants not being able to see the file(s) even though they exist on disk. Refer to <https://www.pantsbuild.org/v2.19/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.


Exited with code exit status 1
If files are deleted, yes, they are changed, but they shouldn't throw an error. Pants version 2.19.0 OS Linux (CircleCI Ubuntu executor) Additional info N/A pantsbuild/pants