Merge pull request #1265 from crazy-max/go-1.19

Dockerfile: update to go 1.19
This commit is contained in:
Tõnis Tiigi 2022-08-24 21:19:51 -07:00 committed by GitHub
commit 1bb375fe5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
ARG GO_VERSION=1.18 ARG GO_VERSION=1.19
ARG XX_VERSION=1.1.2 ARG XX_VERSION=1.1.2
ARG DOCKERD_VERSION=20.10.14 ARG DOCKERD_VERSION=20.10.14

View File

@ -1,5 +1,5 @@
variable "GO_VERSION" { variable "GO_VERSION" {
default = "1.18" default = "1.19"
} }
variable "BIN_OUT" { variable "BIN_OUT" {
default = "./bin" default = "./bin"

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
ARG GO_VERSION=1.18 ARG GO_VERSION=1.19
ARG FORMATS=md,yaml ARG FORMATS=md,yaml
FROM golang:${GO_VERSION}-alpine AS docsgen FROM golang:${GO_VERSION}-alpine AS docsgen

View File

@ -1,10 +1,10 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
ARG GO_VERSION=1.18 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

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
ARG GO_VERSION=1.18 ARG GO_VERSION=1.19
ARG MODOUTDATED_VERSION=v0.8.0 ARG MODOUTDATED_VERSION=v0.8.0
FROM golang:${GO_VERSION}-alpine AS base FROM golang:${GO_VERSION}-alpine AS base

View File

@ -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