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/commands
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
..
imagetools imagetools: give imagetools create a progress bar 2 years ago
bake.go bake: recursively resolve groups 2 years ago
build.go build: ensure consistent help messages for experimental cli help 2 years ago
create.go create: improve interface when attempting to create docker driver 2 years ago
create_test.go Fix tolerations not parsing its options correctly, add tests 3 years ago
diskusage.go vendor: update buildkit to 539be170 3 years ago
inspect.go inspect: add buildkit version information to command output 2 years ago
install.go cli: fix builder persistent flag 3 years ago
ls.go ls: move builder/node status error msg below table 3 years ago
print.go add formatting support to print function 2 years ago
prune.go Merge pull request #1250 from jedevc/prune-all-help 2 years ago
rm.go rm: display name of removed builder 3 years ago
root.go root: ignore SSH CloseRead warning 3 years ago
stop.go cli: fix builder persistent flag 3 years ago
uninstall.go cli: fix builder persistent flag 3 years ago
use.go cli: fix builder persistent flag 3 years ago
util.go buildx: prevent duplicate "failed to find driver" message 2 years ago
version.go cli: fix builder persistent flag 3 years ago