Skip to content

Commit 7b05db7

Browse files
committed
don't check project name if validation is skipped
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent e508c72 commit 7b05db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ func load(ctx context.Context, configDetails types.ConfigDetails, opts *Options,
542542
return nil, errors.New("empty compose file")
543543
}
544544

545-
if opts.projectName == "" {
545+
if !opts.SkipValidation && opts.projectName == "" {
546546
return nil, errors.New("project name must not be empty")
547547
}
548548

0 commit comments

Comments
 (0)