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>
(cherry picked from commit 75e0219)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
lifubang authored and kolyshkin committed Jun 7, 2024
1 parent ae85f05 commit c488d13
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 c488d13

Please sign in to comment.