since when could we use for loops and variables in...
# general
a
since when could we use for loops and variables in BUILD files?
h
I've been doing it for quite some time. Aren't they just python or starlark files? I get confused between what Pants and Bazel does.
a
ive been writing ugly macros to do it 🥲
e
Since 2010.
h
The only thing we ban is imports. And then I can't remember if we actually ban this, but you really should not be using open() because it breaks caching
You can use F strings as well. Python 3.7+
c
Yeah, this is easily overlooked. I think it could be highlighted more some where at the end of introductory docs that BUILD files are plain python without io.
👍 1