浏览代码

Fix lint make target

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 4 年之前
父节点
当前提交
3bf555cbd6
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Dockerfile
  2. 1 0
      cmd/compose/compose.go
  3. 1 0
      pkg/e2e/cancel_test.go

+ 1 - 1
Dockerfile

@@ -34,7 +34,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
 
 FROM base AS lint
 ENV CGO_ENABLED=0
-COPY --from=lint-base /usr/bin/golangci-lint /usr/bin/golangci-lint
+COPY --from=golangci/golangci-lint /usr/bin/golangci-lint /usr/bin/golangci-lint
 ARG BUILD_TAGS
 ARG GIT_TAG
 RUN --mount=target=. \

+ 1 - 0
cmd/compose/compose.go

@@ -44,6 +44,7 @@ import (
 // Command defines a compose CLI command as a func with args
 type Command func(context.Context, []string) error
 
+// CobraCommand defines a cobra command function
 type CobraCommand func(context.Context, *cobra.Command, []string) error
 
 // AdaptCmd adapt a CobraCommand func to cobra library

+ 1 - 0
pkg/e2e/cancel_test.go

@@ -1,3 +1,4 @@
+//go:build !windows
 // +build !windows
 
 /*