Skip to content

Commit 7a017af

Browse files
authored
Merge pull request #4264 from lifubang/upgrade-spec.bat
[ci] use go mod instead of go get in spec.bats
2 parents 03db4d6 + 75e0219 commit 7a017af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/integration/spec.bats

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function teardown() {
3131

3232
git clone https://github.com/opencontainers/runtime-spec.git
3333
(cd runtime-spec && git reset --hard "$SPEC_REF")
34-
SCHEMA='runtime-spec/schema/config-schema.json'
35-
[ -e "$SCHEMA" ]
3634

37-
GO111MODULE=auto go get github.com/xeipuuv/gojsonschema
38-
GO111MODULE=auto go build runtime-spec/schema/validate.go
35+
cd runtime-spec/schema
36+
go mod init runtime-spec
37+
go mod tidy
38+
go build ./validate.go
3939

40-
./validate "$SCHEMA" config.json
40+
./validate config-schema.json ../../config.json
4141
}

0 commit comments

Comments
 (0)