diff --git a/Makefile b/Makefile index 2b8ea10..beaa605 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ unittest: $(GO) test ./... -coverprofile=coverage.out ./... lint: - @which golangci-lint >/dev/null || echo "WARNING: go linter not installed. To install, run\n curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b \$$(go env GOPATH)/bin v1.42.1" + @which golangci-lint >/dev/null || echo "WARNING: go linter not installed. To install, run\n curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b \$$(go env GOPATH)/bin v1.46.2" @if [ "z${ARCH}" = "zx86_64" ] && which golangci-lint >/dev/null ; then golangci-lint run --config .golangci.yml ; else echo "WARNING: Linting skipped (not on x86_64 or linter not installed)"; fi test: unittest lint diff --git a/go.mod b/go.mod index b1d9203..7510054 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/edgexfoundry/go-mod-registry/v2 +go 1.18 + require ( github.com/hashicorp/consul/api v1.13.0 github.com/stretchr/testify v1.8.0 @@ -24,5 +26,3 @@ require ( golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -go 1.17