diff --git a/schema/Makefile b/schema/Makefile index ac8c8d247..fe676ae66 100644 --- a/schema/Makefile +++ b/schema/Makefile @@ -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); \ diff --git a/schema/README.md b/schema/README.md index 8eefd6de4..f8f7fb739 100644 --- a/schema/README.md +++ b/schema/README.md @@ -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: