Can you use variables in `BUILD` files? Or some ot...
# general
r
Can you use variables in
BUILD
files? Or some other wildcard substitution mechanism?
h
BUILD files are just starlark so you can define lists and dictionaries and such outside of target definitions.
🙏 1
b
I think
BUILD
files are normal Python (with restrictions on imports). You can share also things across multiple
BUIlD
files via macros: https://www.pantsbuild.org/docs/macros
h
you are correct! I was thinking of bazel which uses starlark
That's "officially" documented here
b
Yup, Pants 2 doesn't use Starlark. You've got Python itself at your disposal.