From f033465a7dcaa5aef4e202a4caa07a05821896e4 Mon Sep 17 00:00:00 2001 From: Travis Bischel Date: Sun, 26 May 2024 13:25:25 -0600 Subject: [PATCH] all: update GHA, remove now-unneeded lint mute --- .github/workflows/i386.yml | 2 +- .github/workflows/lint-and-test.yml | 4 ++-- pkg/kgo/consumer.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/i386.yml b/.github/workflows/i386.yml index 3696a6bb..ad24ce50 100644 --- a/.github/workflows/i386.yml +++ b/.github/workflows/i386.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: 'stable' - name: staticcheck diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 4d555b41..34ac7d36 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -21,10 +21,10 @@ jobs: name: "golangci-lint on amd64" steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: 'stable' - - uses: golangci/golangci-lint-action@v3 + - uses: golangci/golangci-lint-action@v6 with: version: latest args: --timeout=5m diff --git a/pkg/kgo/consumer.go b/pkg/kgo/consumer.go index 15ae2693..01f98da4 100644 --- a/pkg/kgo/consumer.go +++ b/pkg/kgo/consumer.go @@ -2126,7 +2126,7 @@ func (cl *Client) listOffsetsForBrokerLoad(ctx context.Context, broker *broker, delete(load, topic) } - offset := poffset(&rPartition) //nolint:gosec // poffset returns int64 from input, does not save pointer + offset := poffset(&rPartition) end := func() int64 { return poffset(&resp2.Topics[i].Partitions[j]) } // We ensured the resp2 shape is as we want and has no