Skip to content

Commit

Permalink
use go mod instead of go get in spec.bats
Browse files Browse the repository at this point in the history
Signed-off-by: lifubang <lifubang@acmcoder.com>
  • Loading branch information
lifubang committed Apr 30, 2024
1 parent 03db4d6 commit 488f33b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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" ]

cd runtime-spec/schema
go mod init runtime-spec
go mod tidy
go build ./validate.go

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

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

0 comments on commit 488f33b

Please sign in to comment.