You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this makes "foo_mode" and "bar_mode" required, since jsonnet doesn't support default values for extVar: google/go-jsonnet#247
This is unpleasant, since we have several jsonnet_to_json rules, reusing the same foo.jsonnet, enabling & disabling various containers. I'd like to avoid enumerating all custom args for containers that have been explicitly disabled.
The request I'll make here is to add support for $(...) within larger strings.
The text was updated successfully, but these errors were encountered:
I'm using jsonnet to generate docker-compose configs. I'd like to pass bazel defines/vars into the generated files.
Maybe something like this:
Unfortunately,
jsonnet.bzl
only does substitution if the$(...)
is the entire string.https://github.com/bazelbuild/rules_jsonnet/blob/12979862ab51358a8a5753f5a4aa0658fec9d4af/jsonnet/jsonnet.bzl#L128
I was thinking of using a
select
statement, but that's broken inside dicts:bazelbuild/bazel#3902
I can promote variables to top-level:
But this makes "foo_mode" and "bar_mode" required, since jsonnet doesn't support default values for extVar: google/go-jsonnet#247
This is unpleasant, since we have several
jsonnet_to_json
rules, reusing the samefoo.jsonnet
, enabling & disabling various containers. I'd like to avoid enumerating all custom args for containers that have been explicitly disabled.The request I'll make here is to add support for
$(...)
within larger strings.The text was updated successfully, but these errors were encountered: