Dumb question: Can one make variables in build fil...
# general
p
Dumb question: Can one make variables in build files then interpolate strings?
l
build files are "just" python3 code, so you can probably do what you are trying to do
c
only restriction is you can’t use
import
p
Ahh got it.
Can you used shared values somehow? Like I’m bazel I can load starlark files from other locations.
l
you can write macros, but also probably put constants in there
c
yep, everything that is declared at the module level in a prelude (macro file) is available in all BUILD files
👍 1