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
I think it would be great if the same would apply to --list-targets and --list-vars.
I assume this is easy to add by just changing the above-mentioned condition as I assume the logic for these flags doesn't actually needs a builder and the function returns after processing either of these flags:
Add the flags --list-targets and --list-variables to the cases
where initializing the builder can be skipped.
This allows the listing of targets and variables
when no builder is available.
Resolves: docker#2755
Signed-off-by: Tim Neumann <[email protected]>
Description
buildx bake already supports running with
--print
even if there is no docker daemon / builder instance available.This exception is handled here:
buildx/commands/bake.go
Line 119 in 2bdf451
I think it would be great if the same would apply to
--list-targets
and--list-vars
.I assume this is easy to add by just changing the above-mentioned condition as I assume the logic for these flags doesn't actually needs a builder and the function returns after processing either of these flags:
buildx/commands/bake.go
Lines 188 to 192 in 2bdf451
I would be open to create a PR, if there is no argument against this.
The text was updated successfully, but these errors were encountered: