You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/bake
Justin Chadwell 77b33260f8 bake: recursively resolve groups
Groups that contained other groups were not recursively resolved by
ReadTargets, which prevented output from --print from being useable as a
self-contained bake file.

This patch ensures that all groups that are referenced inside the bake
file are actually defined under the groups field. This has required a
substantial refactor, as previously only a single group was returned
from ReadTargets, notably, returning a map of groups, instead of a
slice.

This does introduce a small behavior change to the behavior of --print -
while previously, passing a group name to bake would return all the
targets of that group back as the default group, now only the name of
that group will be inserted into the default group, keeping the original
group intact. The impact of this can be observed in some of the changes
to the bake_test.go file.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
..
hclparser bake: add timestamp function 3 years ago
bake.go bake: recursively resolve groups 2 years ago
bake_test.go bake: recursively resolve groups 2 years ago
compose.go bake(compose): fix unskipped services without build context 2 years ago
compose_test.go bake: test compose file validation 2 years ago
hcl.go bake: restrict target name 3 years ago
hcl_test.go bake: add tests for missing attributes in userfuncs 3 years ago
remote.go bake: fix protocol detection 3 years ago