From d97ae88b1e4e8cc3661677076395593107609249 Mon Sep 17 00:00:00 2001 From: Ernesto Ojeda Date: Thu, 20 Jan 2022 11:06:33 -0700 Subject: [PATCH] ci: gomod changes related for Go 1.17 Signed-off-by: Ernesto Ojeda --- README.md | 2 +- go.mod | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 416ce3e2..62a7b36f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The default encoding for the models is JSON, although in at least one case -- YAML encoding is also supported since a device profile is defined as a YAML document. ### Installation ### -* Make sure you're using at least Go 1.11.1 (EdgeX currently uses Go 1.16.x) and have modules enabled, i.e. have an initialized go.mod file +* Make sure you're using at least Go 1.11.1 (EdgeX currently uses Go 1.17.x) and have modules enabled, i.e. have an initialized go.mod file * If your code is in your GOPATH then make sure ```GO111MODULE=on``` is set * Run ```go get github.com/edgexfoundry/go-mod-core-contracts``` * This will add the go-mod-core-contracts to the go.mod file and download it into the module cache diff --git a/go.mod b/go.mod index 29d35172..0a2c35d7 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,22 @@ require ( github.com/go-kit/log v0.2.0 github.com/go-playground/validator/v10 v10.10.0 github.com/google/uuid v1.3.0 - github.com/stretchr/objx v0.1.1 // indirect github.com/stretchr/testify v1.7.0 + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b +) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/go-logfmt/logfmt v0.5.1 // indirect + github.com/go-playground/locales v0.14.0 // indirect + github.com/go-playground/universal-translator v0.18.0 // indirect + github.com/leodido/go-urn v1.2.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/objx v0.1.1 // indirect + github.com/x448/float16 v0.8.4 // indirect golang.org/x/crypto v0.0.0-20210915214749-c084706c2272 // indirect golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect golang.org/x/text v0.3.7 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) -go 1.16 +go 1.17