Skip to content

Commit

Permalink
tests/int/spec.bats: fix for go 1.16
Browse files Browse the repository at this point in the history
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 <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin authored and dqminh committed Feb 3, 2021
1 parent 1e17537 commit d1d216b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/spec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit d1d216b

Please sign in to comment.