Skip to content

Commit 60e14f6

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

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ci/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ WORKDIR /go/src
1818

1919
ARG GOLANGCILINT_VERSION=v1.64.5
2020
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
21-
RUN go install github.com/kunalkushwaha/ltag@latest && rm -rf /go/src/github.com/kunalkushwaha
2221
RUN go install github.com/awalterschulze/[email protected]
23-
RUN go install github.com/kunalkushwaha/ltag@v0.2.5
22+
RUN go install github.com/containerd/ltag@v0.3.0

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)