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 <[email protected]>
  • Loading branch information
lifubang committed Apr 4, 2024
1 parent 3332de5 commit 806dcd1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration/spec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ function teardown() {
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
cd ../../
./runtime-spec/schema/validate "$SCHEMA" config.json
}

0 comments on commit 806dcd1

Please sign in to comment.