From 3f30167c3b0594ccf1640c88d8009a3776c1c757 Mon Sep 17 00:00:00 2001 From: Iceber Gu Date: Mon, 8 Feb 2021 21:13:12 +0800 Subject: [PATCH] schema: make with golang 1.16 Signed-off-by: Iceber Gu --- schema/Makefile | 4 ++-- schema/README.md | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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 fecc46741..f184e1ee2 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: