mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
ExtractVariables already walked nested interpolations in :- and :+
operands, but not in the :? / ? error message. So ${U:?${B}} and
${U?$B} only reported U, even though Substitute expands B when it
builds the missing-variable error.
The compose spec lists ${VARIABLE?$FOO} among nested interpolations.
Walk the required-error operand the same way as the default and
presence ones.
Fixes #934
Signed-off-by: Kay van Dijk <git@vandijk.one>
|
History
|
|
|---|---|---|
| .. | ||
| template.go | ||
| template_fuzz_test.go | ||
| template_test.go | ||
| variables.go | ||
| variables_test.go | ||