From 164e0adb589ccfdad11400320416720363542802 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 26 Jan 2021 12:33:52 -0800 Subject: [PATCH 1/2] tests/int/spec.bats: fix for go 1.16 go 1.16 has GO111MODULE=on by default, and since runtime-spec/schema does not come with go.mod, it complains: > runtime-spec/schema/validate.go:10:2: no required module provides package github.com/xeipuuv/gojsonschema: working directory is not part of a module Use GO111MODULE=auto as a workaround. Signed-off-by: Kir Kolyshkin --- tests/integration/spec.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/spec.bats b/tests/integration/spec.bats index a7da337f0..5bcac80ba 100644 --- a/tests/integration/spec.bats +++ b/tests/integration/spec.bats @@ -33,8 +33,8 @@ function teardown() { SCHEMA='runtime-spec/schema/config-schema.json' [ -e "$SCHEMA" ] - go get github.com/xeipuuv/gojsonschema - go build runtime-spec/schema/validate.go + GO111MODULE=auto go get github.com/xeipuuv/gojsonschema + GO111MODULE=auto go build runtime-spec/schema/validate.go ./validate "$SCHEMA" config.json } From b1195b7667fd9e13eb0a96fa1995b172b77e5a83 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 26 Jan 2021 10:58:21 -0800 Subject: [PATCH 2/2] ci: test with golang 1.16-rc1 Courtesy of https://github.com/actions/setup-go/issues/92 [v2: update from beta1 to rc1] Signed-off-by: Kir Kolyshkin --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b7f770ce..484c5b24e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.14.x, 1.15.x] + go-version: [1.14.x, 1.15.x, 1.16.0-rc1] rootless: ["rootless", ""] steps: @@ -40,6 +40,7 @@ jobs: - name: install go ${{ matrix.go-version }} uses: actions/setup-go@v2 with: + stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")' go-version: ${{ matrix.go-version }} - name: build