Merge pull request #2763 from neumantm/feat/listWithoutBuilder

Skip Builder Init For Bake List Flags
This commit is contained in:
Tõnis Tiigi 2024-10-29 10:20:58 -07:00 committed by GitHub
commit cd8d61a9d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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),