Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10.1
version: v2.14.0
args: --timeout 10m
skip-cache: false
- name: Vet
Expand Down
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ linters:
- misspell
- nilerr
- unconvert
settings:
goconst:
exclude-types:
- Call
- CompositeLit
exclusions:
generated: lax
presets:
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Beekeeper consumes Bee as a library (`github.com/ethersphere/bee/v2` in `go.mod`
```bash
make binary # build ./dist/beekeeper (CGO disabled, version stamped via -ldflags)
make test # unit tests: go test -v ./pkg/...
make lint # golangci-lint (pinned v2.10.1; auto-installs if missing)
make lint # golangci-lint (pinned v2.14.0; auto-installs if missing)
```

Run a single test: `go test -run TestName ./pkg/<package>/...` (add `-race` to mirror CI).

CI (`.github/workflows/go.yml`) runs `make vet`, `make check-whitespace`, golangci-lint, `make build`, and `make test`. PR titles are linted as Conventional Commits (`.github/workflows/pr-title.yml`).

Requires Go 1.26. For a full local cluster (K3s/k3d + Geth), follow the **Local Development** quick start in `README.md`.
Requires Go 1.27. For a full local cluster (K3s/k3d + Geth), follow the **Local Development** quick start in `README.md`.

## How a run is wired together

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.26 AS build
FROM golang:1.27.3 AS build

WORKDIR /src
# enable modules caching in separate layer
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GO ?= go
GOLANGCI_LINT ?= golangci-lint
GOLANGCI_LINT_VERSION ?= v2.10.1
GOLANGCI_LINT_VERSION ?= v2.14.0
COMMIT ?= "$(shell git describe --long --dirty --always --match "" || true)"
VERSION ?= "$(shell git describe --tags --abbrev=0 | cut -c2-)"
LDFLAGS ?= -s -w \
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/ethersphere/beekeeper

go 1.26
go 1.27.3

replace github.com/codahale/hdrhistogram => github.com/HdrHistogram/hdrhistogram-go v1.1.2

Expand Down
2 changes: 1 addition & 1 deletion pkg/bee/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package bee

import (
"bytes"
"crypto/sha3"
"fmt"
"hash"
"io"
"math/rand"

"github.com/ethersphere/bee/v2/pkg/swarm"
"golang.org/x/crypto/sha3"
)

// File represents Bee file
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/k8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func TestNewClient(t *testing.T) {
fieldVal := val.Field(i)

// Check if the field is nil.
if (fieldVal.Kind() == reflect.Interface || fieldVal.Kind() == reflect.Ptr) && fieldVal.IsNil() {
if (fieldVal.Kind() == reflect.Interface || fieldVal.Kind() == reflect.Pointer) && fieldVal.IsNil() {
t.Errorf("nil not expected for '%s' property", val.Type().Field(i).Name)
}
}
Expand Down
Loading