From 4e6f6a013c17b93e7fa48b717c6ed57aa295686b Mon Sep 17 00:00:00 2001 From: James Rasell Date: Thu, 27 Aug 2026 09:21:42 +0100 Subject: [PATCH] ci: Update golangci-lint to accommodate Go 1.27.0 --- .github/workflows/check.yml | 2 +- client/rpc_client.go | 4 ++-- cmd/serf/command/agent/ipc.go | 2 +- serf/messages.go | 2 +- serf/ping_delegate.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fa1ca9fc1..ff819f93a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -37,7 +37,7 @@ jobs: - name: Lint code uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: - version: v2.12.2 + version: v2.13.1 unit-tests: name: "Unit Tests" diff --git a/client/rpc_client.go b/client/rpc_client.go index 4e43395dd..dd1036e01 100644 --- a/client/rpc_client.go +++ b/client/rpc_client.go @@ -128,7 +128,7 @@ func NewRPCClient(addr string) (*RPCClient, error) { func (c *Config) newMsgpackHandle() *codec.MsgpackHandle { return &codec.MsgpackHandle{ WriteExt: true, - BasicHandle: codec.BasicHandle{ + BasicHandle: codec.BasicHandle{ //nolint:staticcheck TimeNotBuiltin: !c.MsgpackUseNewTimeFormat, }, } @@ -377,7 +377,7 @@ func (c *RPCClient) RemoveKey(key string) (map[string]string, error) { // ListKeys returns all of the active keys on each member of the cluster func (c *RPCClient) ListKeys() (map[string]int, int, map[string]string, error) { - header := requestHeader{ + header := requestHeader{ //nolint:staticcheck Command: listKeysCommand, Seq: c.getSeq(), } diff --git a/cmd/serf/command/agent/ipc.go b/cmd/serf/command/agent/ipc.go index ae6a59616..05517e0cf 100644 --- a/cmd/serf/command/agent/ipc.go +++ b/cmd/serf/command/agent/ipc.go @@ -377,7 +377,7 @@ func (i *AgentIPC) isStopped() bool { func (i *AgentIPC) newMsgpackHandle() *codec.MsgpackHandle { return &codec.MsgpackHandle{ WriteExt: true, - BasicHandle: codec.BasicHandle{ + BasicHandle: codec.BasicHandle{ //nolint:staticcheck TimeNotBuiltin: !i.msgpackUseNewTimeFormat, }, } diff --git a/serf/messages.go b/serf/messages.go index 23480f0e9..6a2eb3bba 100644 --- a/serf/messages.go +++ b/serf/messages.go @@ -140,7 +140,7 @@ func encodeMessage(t messageType, msg any, msgpackUseNewTimeFormat bool) ([]byte buf.WriteByte(uint8(t)) handle := codec.MsgpackHandle{ - BasicHandle: codec.BasicHandle{ + BasicHandle: codec.BasicHandle{ //nolint:staticcheck TimeNotBuiltin: !msgpackUseNewTimeFormat, }, } diff --git a/serf/ping_delegate.go b/serf/ping_delegate.go index 29751ffd5..4df2d4074 100644 --- a/serf/ping_delegate.go +++ b/serf/ping_delegate.go @@ -38,7 +38,7 @@ func (p *pingDelegate) AckPayload() []byte { // The rest of the message is the serialized coordinate. enc := codec.NewEncoder(&buf, &codec.MsgpackHandle{ - BasicHandle: codec.BasicHandle{ + BasicHandle: codec.BasicHandle{ //nolint:staticcheck TimeNotBuiltin: !p.serf.msgpackUseNewTimeFormat, }, })