Add Go 1.20, require Go 1.19, drop Go 1.18

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
This commit is contained in:
Austin Vazquez
2023-02-02 19:34:13 +00:00
parent 32d741358f
commit 5ecd40b9bd
6 changed files with 8 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ task:
env:
HOME: /root
CIRRUS_WORKING_DIR: /home/runc
GO_VERSION: "1.18"
GO_VERSION: "1.19"
BATS_VERSION: "v1.3.0"
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs
# yamllint disable rule:key-duplicates

View File

@@ -23,13 +23,13 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.19.x, 1.20.x]
rootless: ["rootless", ""]
race: ["-race", ""]
criu: [""]
include:
# Also test against latest criu-dev
- go-version: 1.18.x
- go-version: 1.19.x
rootless: ""
race: ""
criu: "criu-dev"

View File

@@ -8,7 +8,7 @@ on:
- release-*
pull_request:
env:
GO_VERSION: 1.19.x
GO_VERSION: 1.20.x
permissions:
contents: read
@@ -32,7 +32,7 @@ jobs:
sudo apt -q install libseccomp-dev
- uses: golangci/golangci-lint-action@v3
with:
version: v1.48
version: v1.51
# Extra linters, only checking new code from a pull request.
- name: lint-extra
if: github.event_name == 'pull_request'

View File

@@ -1,4 +1,4 @@
ARG GO_VERSION=1.18
ARG GO_VERSION=1.19
ARG BATS_VERSION=v1.3.0
ARG LIBSECCOMP_VERSION=2.5.4

View File

@@ -24,7 +24,7 @@ A third party security audit was performed by Cure53, you can see the full repor
## Building
`runc` only supports Linux. It must be built with Go version 1.18 or higher.
`runc` only supports Linux. It must be built with Go version 1.19 or higher.
In order to enable seccomp support you will need to install `libseccomp` on your platform.
> e.g. `libseccomp-devel` for CentOS, or `libseccomp-dev` for Ubuntu

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/opencontainers/runc
go 1.18
go 1.19
require (
github.com/checkpoint-restore/go-criu/v6 v6.3.0