Skip to content

Commit

Permalink
build: Upgrade to go 1.21 and linter 1.54.2
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <[email protected]>
  • Loading branch information
Leonard Goodell committed Sep 12, 2023
1 parent ae77527 commit aae349d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.51.2
sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.54.2

test: unittest lint
$(GO) vet ./...
Expand Down
14 changes: 0 additions & 14 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,20 +315,6 @@ const (
ConfigStemSecurity = ConfigStemAll
)

// Constants related to topics for Commanding via MessageBus
// TODO: Remove these once all services are using the constants in the next block
const (
CommandQueryRequestTopicKey = "CommandQueryRequestTopic"
CommandQueryRequestTopicPrefixKey = "CommandQueryRequestTopicPrefix"
CommandRequestTopicKey = "CommandRequestTopic"
CommandRequestTopicPrefixKey = "CommandRequestTopicPrefix"
DeviceCommandRequestTopicKey = "DeviceCommandRequestTopic"
DeviceCommandRequestTopicPrefixKey = "DeviceCommandRequestTopicPrefix"
ExternalCommandQueryResponseTopicKey = "CommandQueryResponseTopic"
ExternalCommandResponseTopicPrefixKey = "CommandResponseTopicPrefix"
ResponseTopicPrefixKey = "ResponseTopicPrefix"
)

// MessageBus Topics
const (

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/edgexfoundry/go-mod-core-contracts/v3

go 1.20
go 1.21

require (
github.com/fxamacker/cbor/v2 v2.5.0
Expand Down

0 comments on commit aae349d

Please sign in to comment.