I haven't been real active in this slack recently ...
# general
c
I haven't been real active in this slack recently (unfortunately away from Pants a bit too) but I ran into something with the
pants tailor
command. The default
build_file_name
is
BUILD
, which we are using. We also have a template
BUILD
file with a different extension that has some templating code in there.
pants tailor
is picking this file up. Seems like files name
<http://BUILD.xyz|BUILD.xyz>
should not be picked up? Maybe there is a reason for this that I don't know
e
This should both explain your observation and give you a knob to get things working as you like: https://www.pantsbuild.org/docs/reference-global#build_patterns
c
That's perfect. Thanks
We had a couple oversights... We thought
pants tailor
would accept a path (
pants tailor path_to_source_code::
) but that doesn't seem to work. Also, should not have given the template name
BUILD.*
.
h
pants tailor path/to/source_code
should work, minus the
::
👍 1
::
means "all targets under this dir", but tailor acts on directories, not targets...
c
Makes sense. Thanks
h