1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2026-02-05 09:45:57 +01:00

schema: make with golang 1.16

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2021-02-08 21:13:12 +08:00
parent 7413a7f753
commit 3f30167c3b
2 changed files with 3 additions and 5 deletions

View File

@@ -15,8 +15,8 @@ fmt:
.PHONY: validate
validate: validate.go
go get -d ./...
go build ./validate.go
GO111MODULE=auto go get github.com/xeipuuv/gojsonschema
GO111MODULE=auto go build ./validate.go
test: validate $(TESTS)
for TYPE in $$(ls test); \

View File

@@ -23,10 +23,8 @@ There is also included a simple utility for facilitating validation.
To build it:
```bash
export GOPATH=`mktemp -d`
go get -d ./...
go get github.com/xeipuuv/gojsonschema
go build ./validate.go
rm -rf $GOPATH
```
Or you can just use make command to create the utility: