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 29, 2024
1 parent 03db4d6 commit cba0420
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 cba0420

Please # to comment.