Skip to content

Commit

Permalink
Merge pull request #162 from tonistiigi/tonistiigi/go-1.20
Browse files Browse the repository at this point in the history
update to Go 1.20
  • Loading branch information
tonistiigi authored Jun 29, 2023
2 parents 171984c + d384523 commit 36ef4d8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
GO_VERSION: ["1.18", "1.19"]
GO_VERSION: ["1.19", "1.20"]
env:
GO_VERSION: ${{ matrix.GO_VERSION }}
steps:
Expand Down Expand Up @@ -53,8 +53,8 @@ jobs:
fail-fast: false
matrix:
go:
- 1.18
- 1.19
- "1.19"
- "1.20"
steps:
-
name: Checkout
Expand Down
4 changes: 0 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ linters:
enable:
- gofmt
- govet
- deadcode
- goimports
- ineffassign
- misspell
- unused
- varcheck
- golint
- staticcheck
- typecheck
- structcheck
disable-all: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#syntax=docker/dockerfile:1
ARG GO_VERSION=1.18
ARG GO_VERSION=1.20

FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.1.0 AS xx

Expand Down
2 changes: 1 addition & 1 deletion bench/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tonistiigi/fsutil/bench

go 1.18
go 1.19

require (
github.com/containerd/continuity v0.3.1-0.20230206214859-2a963a2f56e8
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "GO_VERSION" {
default = "1.18"
default = "1.20"
}

group "default" {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tonistiigi/fsutil

go 1.18
go 1.19

require (
github.com/Microsoft/go-winio v0.5.2
Expand Down
2 changes: 1 addition & 1 deletion hack/dockerfiles/gomod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.18
ARG GO_VERSION=1.20

FROM golang:${GO_VERSION}-alpine AS gomod
RUN apk add --no-cache git
Expand Down
4 changes: 2 additions & 2 deletions hack/dockerfiles/lint.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.18
ARG GO_VERSION=1.20

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.49.0
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.53.3
WORKDIR /go/src/github.com/tonistiigi/fsutil
RUN --mount=target=/go/src/github.com/tonistiigi/fsutil --mount=target=/root/.cache,type=cache --mount=target=/go/pkg/mod,type=cache \
golangci-lint run

0 comments on commit 36ef4d8

Please sign in to comment.