full-window-78652
05/14/2024, 5:31 PMpants tailor check ::
What I tried:
Updating pants.toml
like so (based on another thread)
build_ignore = [
'cookiecutter/',
'\{\{cookiecutter.project_slug\}\}',
]
[tailor]
ignore_paths = [
'cookiecutter/',
'\{\{cookiecutter.project_slug\}\}',
]
Error:
Engine traceback:
in `tailor` goal
IntrinsicError: Could not parse glob exclude pattern `"cookiecutter/cloud_function/{{cookiecutter.project_slug}}/*_test.sh"`: Glob { glob: Some("cookiecutter/cloud_function/{{cookiecutter.project_slug}}/*_test.sh"), err: "nested alternate groups are not allowed"
Resolution:
Problem was with the 'ignore' option 🤦🏻♂️- needed to use pants_ignore
not build_ignore
or ignore_paths
- the following seems to work (at least to avoid throwing the glob error)
pants_ignore = [
"cookiecutter/",
]
ancient-france-42909
05/14/2024, 6:45 PMancient-france-42909
05/14/2024, 6:46 PMfull-window-78652
05/14/2024, 6:58 PMIntrinsicError: Could not parse glob exclude pattern `"\\\\{\\\\{cookiecutter.project_slug\\\\}\\\\}"`: Glob { glob: Some("\\\\{\\\\{cookiecutter.project_slug\\\\}\\\\}"), err: "nested alternate groups are not allowed" }
ancient-france-42909
05/14/2024, 6:58 PMfull-window-78652
05/14/2024, 6:59 PMancient-france-42909
05/14/2024, 7:01 PMancient-france-42909
05/14/2024, 7:01 PMfull-window-78652
05/14/2024, 7:02 PMancient-france-42909
05/14/2024, 7:03 PMancient-france-42909
05/14/2024, 7:03 PMbuild_ignore = ["/cookiecutters/"]
full-window-78652
05/14/2024, 7:04 PMancient-france-42909
05/14/2024, 7:04 PMancient-france-42909
05/14/2024, 7:04 PMfull-window-78652
05/14/2024, 7:06 PM