From 2a134919197dd68f49faebea43cfefee9dac45d6 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 11 Aug 2022 02:09:55 +0200 Subject: [PATCH] Dockerfile: update golangci-lint to 1.48.0 (go 1.19 support) Signed-off-by: CrazyMax --- hack/dockerfiles/lint.Dockerfile | 2 +- util/userfunc/doc.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hack/dockerfiles/lint.Dockerfile b/hack/dockerfiles/lint.Dockerfile index f7f496e1..bbff367c 100644 --- a/hack/dockerfiles/lint.Dockerfile +++ b/hack/dockerfiles/lint.Dockerfile @@ -4,7 +4,7 @@ ARG GO_VERSION=1.19 FROM golang:${GO_VERSION}-alpine RUN apk add --no-cache git gcc musl-dev -RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.2 +RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.48.0 WORKDIR /go/src/github.com/docker/buildx RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \ golangci-lint run diff --git a/util/userfunc/doc.go b/util/userfunc/doc.go index e4461d45..995d9289 100644 --- a/util/userfunc/doc.go +++ b/util/userfunc/doc.go @@ -7,10 +7,10 @@ // // The function declaration syntax looks like this: // -// function "foo" { -// params = ["name"] -// result = "Hello, ${name}!" -// } +// function "foo" { +// params = ["name"] +// result = "Hello, ${name}!" +// } // // When a user-defined function is called, the expression given for the "result" // attribute is evaluated in an isolated evaluation context that defines variables