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:
@@ -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); \
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user