Skip to content

Commit

Permalink
Merge pull request docker#2763 from neumantm/feat/listWithoutBuilder
Browse files Browse the repository at this point in the history
Skip Builder Init For Bake List Flags
  • Loading branch information
tonistiigi authored Oct 29, 2024
2 parents 3a56161 + 0fd935b commit cd8d61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func runBake(ctx context.Context, dockerCli command.Cli, targets []string, in ba

// instance only needed for reading remote bake files or building
var driverType string
if url != "" || !in.printOnly {
if url != "" || !(in.printOnly || in.listTargets || in.listVars) {
b, err := builder.New(dockerCli,
builder.WithName(in.builder),
builder.WithContextPathHash(contextPathHash),
Expand Down

0 comments on commit cd8d61a

Please sign in to comment.