mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
Dockerfile: update golangci-lint to 1.48.0 (go 1.19 support)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -4,7 +4,7 @@ ARG GO_VERSION=1.19
|
|||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine
|
FROM golang:${GO_VERSION}-alpine
|
||||||
RUN apk add --no-cache git gcc musl-dev
|
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
|
WORKDIR /go/src/github.com/docker/buildx
|
||||||
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
RUN --mount=target=/go/src/github.com/docker/buildx --mount=target=/root/.cache,type=cache \
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
//
|
//
|
||||||
// The function declaration syntax looks like this:
|
// The function declaration syntax looks like this:
|
||||||
//
|
//
|
||||||
// function "foo" {
|
// function "foo" {
|
||||||
// params = ["name"]
|
// params = ["name"]
|
||||||
// result = "Hello, ${name}!"
|
// result = "Hello, ${name}!"
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// When a user-defined function is called, the expression given for the "result"
|
// When a user-defined function is called, the expression given for the "result"
|
||||||
// attribute is evaluated in an isolated evaluation context that defines variables
|
// attribute is evaluated in an isolated evaluation context that defines variables
|
||||||
|
Reference in New Issue
Block a user