From 1276be6f117a45c8b13e217674147f4711b849c1 Mon Sep 17 00:00:00 2001 From: bruce Date: Thu, 3 Oct 2024 09:22:15 +0800 Subject: [PATCH] build: Upgrade to go-1.23, Linter1.61.0 Upgrade to go-1.23, Linter1.61.0 Signed-off-by: bruce --- .golangci.yml | 6 ++++++ Makefile | 2 +- go.mod | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 22c18b1a..5f63a101 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,3 +2,9 @@ linters: disable: enable: - gosec +linters-settings: + gosec: + excludes: + # G115: integer overflow conversion + # exclude the rule since it tends to be false positive + - G115 diff --git a/Makefile b/Makefile index bb71cb48..1a5aaff9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ lint: @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 install-lint: - sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.54.2 + sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.61.0 test: unittest lint $(GO) vet ./... diff --git a/go.mod b/go.mod index 86125e4c..5e796d54 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/edgexfoundry/go-mod-core-contracts/v3 -go 1.21 +go 1.23 require ( github.com/fxamacker/cbor/v2 v2.7.0