flat-zoo-31952
09/02/2022, 6:32 PMtailor
issue I'm running into when creating something with pre-commit: I'd like to just pass filenames from pre-commit, but the issue is stuff in pants_ignore
. Anything in pants_ignore
that shows up on the command line causes pants to error out. Example:
❯ ./pants tailor --check aiven/README.md
14:28:43.11 [ERROR] 1 Exception encountered:
Exception: Unmatched glob from CLI arguments: "aiven/README.md"
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.13/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.
Is there a way to avoid this? Or do I need to filter before passing to tailor
?flat-zoo-31952
09/02/2022, 6:36 PM--unmatched-cli-globs=ignore
the path I want?flat-zoo-31952
09/02/2022, 6:46 PMhundreds-father-404
09/02/2022, 7:16 PMhundreds-father-404
09/02/2022, 7:17 PMflat-zoo-31952
09/02/2022, 7:19 PMhundreds-father-404
09/02/2022, 7:19 PMflat-zoo-31952
09/02/2022, 7:20 PM- id: pants-tailor
name: "Ensure BUILD metadata exists (Pants Tailor)"
entry: ./pants --unmatched-cli-globs=ignore tailor --check
language: system
stages: [ commit, push ]
pass_filenames: true