Skip to content

Commit

Permalink
Merge pull request #4264 from lifubang/upgrade-spec.bat
Browse files Browse the repository at this point in the history
[ci] use go mod instead of go get in spec.bats
  • Loading branch information
AkihiroSuda authored Apr 30, 2024
2 parents 03db4d6 + 75e0219 commit 7a017af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/spec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function teardown() {

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

GO111MODULE=auto go get github.com/xeipuuv/gojsonschema
GO111MODULE=auto go build runtime-spec/schema/validate.go
cd runtime-spec/schema
go mod init runtime-spec
go mod tidy
go build ./validate.go

./validate "$SCHEMA" config.json
./validate config-schema.json ../../config.json
}

0 comments on commit 7a017af

Please # to comment.