Skip to content

Commit

Permalink
Merge pull request #4946 from thaJeztah/bump_gofumpt
Browse files Browse the repository at this point in the history
Dockerfile: update mvdan/gofumpt to v0.6.0
  • Loading branch information
thaJeztah authored Mar 18, 2024
2 parents 4eef4af + 48b5efe commit c050bf0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ shellcheck: ## run shellcheck validation
.PHONY: fmt
fmt: ## run gofumpt (if present) or gofmt
@if command -v gofumpt > /dev/null; then \
gofumpt -w -d -lang=1.19 . ; \
gofumpt -w -d -lang=1.21 . ; \
else \
go list -f {{.Dir}} ./... | xargs gofmt -w -s -d ; \
fi
Expand Down
1 change: 0 additions & 1 deletion cli/command/image/build/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func TestGetContextFromReaderString(t *testing.T) {
tarReader := tar.NewReader(tarArchive)

_, err = tarReader.Next()

if err != nil {
t.Fatalf("Error when reading tar archive: %s", err)
}
Expand Down
1 change: 0 additions & 1 deletion cli/command/plugin/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func runCreate(ctx context.Context, dockerCli command.Cli, options pluginCreateO
createCtx, err = archive.TarWithOptions(absContextDir, &archive.TarOptions{
Compression: compression,
})

if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV GOTOOLCHAIN=local
ENV CGO_ENABLED=0

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 \
--mount=type=cache,target=/go/pkg/mod \
--mount=type=tmpfs,target=/go/src/ \
Expand Down

0 comments on commit c050bf0

Please sign in to comment.