Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ on:
jobs:
on-pull-request:
name: test
strategy:
matrix:
go-version:
- 1.24.x
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
go-version-file: go.mod
cache: true # caching and restoring go modules and build outputs

- run: go env
Expand All @@ -45,7 +40,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.6.1
version: v2.15.0
skip-cache: true # cache/restore is done by actions/setup-go@v3 step
args: -v

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GOLANGCI_LINT = $(GOPATH)/bin/golangci-lint
GOLANGCI_LINT_VERSION = v1.61.0
GOLANGCI_LINT_VERSION = v2.15.0

$(GOLANGCI_LINT): ## Download Go linter
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION)
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/groupcache/groupcache-go/v3

go 1.24.0
go 1.26.10

require (
github.com/kapetan-io/tackle v0.13.0
Expand Down
2 changes: 1 addition & 1 deletion transport/mock_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (s *peerStats) Report() string {
// Map keys have no guaranteed order, so we sort the keys here.
slices.Sort(sorted)
for i := 0; i < len(sorted); i++ {
b.WriteString(fmt.Sprintf("%s = %d ", sorted[i], s.stats[sorted[i]]))
fmt.Fprintf(&b, "%s = %d ", sorted[i], s.stats[sorted[i]])
}
return strings.TrimSpace(b.String())
}
Loading