gray-island-97118
04/06/2022, 3:21 PMpants tailor --check update-build-files
is updating my BUILD
file with some comment text for the terraform module
# NOTE: Sources restricted from the default for terraform_modules due to conflict with...
This was working yesterday, so I’m not sure what’s changed. Has anyone else experienced this?hundreds-father-404
04/06/2022, 3:22 PMgray-island-97118
04/06/2022, 3:30 PM./pants
is, and under this the directory you can see in the command results in
./pants tailor services/dev/example-service
16:26:12.43 [WARN] Unmatched glob from services/dev/example-service:tf_mods0's `sources` field: "services/dev/example-service/services/dev/example-service/**/*.tf"
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.10/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.
16:26:12.43 [WARN] Unmatched glob from services/dev/example-service:tf_mods1's `sources` field: "services/dev/example-service/services/dev/example-service/**/*.tf"
Created services/dev/example-service/BUILD:
- Add terraform_modules target tf_mods
Then if I run;
./pants tailor --check
Would update services/dev/example-service/BUILD:
- Add terraform_modules target tf_mods0
To fix `tailor` failures, run `./pants tailor`.
And it will just keep going if I tailor
again adding targets for tf_mods1
, tf_mods2
etc, almost like it’s stuck in some loophundreds-father-404
04/06/2022, 3:34 PM[tailor].ignore_paths
https://www.pantsbuild.org/docs/create-initial-build-filesgray-island-97118
04/06/2022, 3:35 PMhundreds-father-404
04/06/2022, 3:35 PMfast-nail-55400
04/06/2022, 3:45 PMterraform_modules
in favor of tailor writing a terraform_module
target in each directory?fast-nail-55400
04/06/2022, 3:46 PMterraform_modules