mirror of https://github.com/docker/cli.git
Dockerfile: update mvdan/gofumpt to v0.6.0
- full diff: https://github.com/mvdan/gofumpt/compare/v0.4.0...v0.6.0 - v0.6.0 release notes: https://github.com/mvdan/gofumpt/releases/tag/v0.6.0 - v0.5.0 release notes: https://github.com/mvdan/gofumpt/releases/tag/v0.5.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
38fcd1ca63
commit
48b5efee03
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ shellcheck: ## run shellcheck validation
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt: ## run gofumpt (if present) or gofmt
|
fmt: ## run gofumpt (if present) or gofmt
|
||||||
@if command -v gofumpt > /dev/null; then \
|
@if command -v gofumpt > /dev/null; then \
|
||||||
gofumpt -w -d -lang=1.19 . ; \
|
gofumpt -w -d -lang=1.21 . ; \
|
||||||
else \
|
else \
|
||||||
go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \
|
go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -129,7 +129,6 @@ func TestGetContextFromReaderString(t *testing.T) {
|
||||||
tarReader := tar.NewReader(tarArchive)
|
tarReader := tar.NewReader(tarArchive)
|
||||||
|
|
||||||
_, err = tarReader.Next()
|
_, err = tarReader.Next()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Error when reading tar archive: %s", err)
|
t.Fatalf("Error when reading tar archive: %s", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,6 @@ func runCreate(ctx context.Context, dockerCli command.Cli, options pluginCreateO
|
||||||
createCtx, err = archive.TarWithOptions(absContextDir, &archive.TarOptions{
|
createCtx, err = archive.TarWithOptions(absContextDir, &archive.TarOptions{
|
||||||
Compression: compression,
|
Compression: compression,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ ENV GOTOOLCHAIN=local
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
FROM golang AS gofumpt
|
FROM golang AS gofumpt
|
||||||
ARG GOFUMPT_VERSION=v0.4.0
|
ARG GOFUMPT_VERSION=v0.6.0
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
--mount=type=cache,target=/go/pkg/mod \
|
--mount=type=cache,target=/go/pkg/mod \
|
||||||
--mount=type=tmpfs,target=/go/src/ \
|
--mount=type=tmpfs,target=/go/src/ \
|
||||||
|
|
Loading…
Reference in New Issue