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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
# /Dockerfile
# /frdrpc/Dockerfile
# /itest/Dockerfile
GO_VERSION: 1.25.12
GO_VERSION: 1.27.3

jobs:
########################
Expand Down
68 changes: 43 additions & 25 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,51 @@
version: "2"

run:
# timeout for analysis
# Timeout for analysis.
timeout: 4m

linters-settings:
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true

tagliatelle:
case:
rules:
json: snake

whitespace:
multi-func: true
multi-if: true

gosec:
excludes:
- G402 # Look for bad TLS connection settings.
- G306 # Poor file permissions used when writing to a new file.
- G601 # Implicit memory aliasing in for loop.
- G115 # Integer overflow in conversion.

staticcheck:
checks: ["-SA1019"]
formatters:
enable:
- gofmt
settings:
gofmt:
simplify: true

linters:
default: standard
enable:
- gofmt
- whitespace
- gosec
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling

settings:
govet:
disable:
- inline

tagliatelle:
case:
rules:
json: snake

whitespace:
multi-func: true
multi-if: true

gosec:
excludes:
- G402 # Look for bad TLS connection settings.
- G306 # Poor file permissions used when writing a new file.
- G601 # Implicit memory aliasing in for loop.
- G115 # Integer overflow in conversion.


staticcheck:
# Preserve the v1 default gosimple (S*) checks.
# The v1 negative-only staticcheck list enabled no SA checks.
checks: ["S*"]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25.12-alpine as builder
FROM golang:1.27.3-alpine as builder

# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
# queries required to connect to linked containers succeed.
Expand Down
2 changes: 1 addition & 1 deletion frdrpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25.12-bookworm
FROM golang:1.27.3-bookworm

RUN apt-get update && apt-get install -y \
git \
Expand Down
287 changes: 164 additions & 123 deletions frdrpc/faraday.pb.go

Large diffs are not rendered by default.

136 changes: 68 additions & 68 deletions frdrpc/faraday_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frdrpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

go 1.25.12
go 1.27.3
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ replace github.com/golang-migrate/migrate/v4 => github.com/lightninglabs/migrate
// We need to replace frdrpc locally until we have this PR merged.
replace github.com/lightninglabs/faraday/frdrpc => ./frdrpc

go 1.25.12
go 1.27.3
2 changes: 1 addition & 1 deletion itest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# base images. The first stage builds lnd with the golang base image.
# The second stage runs directly on the bitcoind base image and adds all
# binaries required to run the tests with.
FROM golang:1.25.12-alpine as builder
FROM golang:1.27.3-alpine as builder

ARG LND_VERSION=v0.21.0-beta

Expand Down
10 changes: 5 additions & 5 deletions itest/test_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (c *testContext) makePayment(src, dest lndclient.LndServices,
preimage = status.Preimage
return status.State == targetState

case <-errChan:
case err := <-errChan:
require.NoError(c.t, err, "error sending payment")
return false
}
Expand Down Expand Up @@ -333,9 +333,8 @@ func (c *testContext) closeChannel(client lndclient.LightningClient,
return true
}

case <-errChan:
c.t.Fatalf("error closing channel: %v, %v", channel,
err)
case err := <-errChan:
c.t.Fatalf("error closing channel: %v, %v", channel, err)

// If we have not received an update yet, wait for the pending
// close to broadcast. Only once we have captured the close tx
Expand Down Expand Up @@ -611,7 +610,8 @@ func (c *testContext) stopFaraday() {
require.NoError(c.t, c.faradayCmd.Process.Kill())

select {
case <-c.faradayErr:
case err := <-c.faradayErr:
require.Error(c.t, err, "expected faraday process to exit after kill")
case <-time.After(processKillTimeout):
require.FailNow(c.t, "cannot kill faraday process")
}
Expand Down
4 changes: 2 additions & 2 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25.12-bookworm
FROM golang:1.27.3-bookworm

RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
Expand All @@ -11,7 +11,7 @@ RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& go install -trimpath github.com/golangci/golangci-lint/v2/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/

WORKDIR /build
Loading
Loading