Skip to content

Commit cad4234

Browse files
authored
Merge pull request #112 from ellemouton/slog
multi: bump LND, aperture and btclog deps
2 parents f823ad0 + f872c9b commit cad4234

File tree

21 files changed

+213
-183
lines changed

21 files changed

+213
-183
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
# go needs absolute directories, using the $HOME variable doesn't work here.
1717
GOCACHE: /home/runner/work/go/pkg/build
1818
GOPATH: /home/runner/work/go
19-
GO_VERSION: 1.22.6
19+
GO_VERSION: 1.23.6
2020

2121
jobs:
2222
########################

.golangci.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
# timeout for analysis
3-
deadline: 4m
3+
timeout: 4m
44
build-tags:
55
- autopilotrpc
66
- chainrpc
@@ -40,7 +40,7 @@ linters:
4040
enable-all: true
4141
disable:
4242
# Allow dynamic errors.
43-
- goerr113
43+
- err113
4444

4545
# We want to allow short variable names.
4646
- varnamelen
@@ -70,36 +70,34 @@ linters:
7070
# guidelines. See https://github.com/mvdan/gofumpt/issues/235.
7171
- gofumpt
7272

73-
# Disable gomnd even though we generally don't use magic numbers, but there
74-
# are exceptions where this improves readability.
75-
- gomnd
76-
7773
# Disable whitespace linter as it has conflict rules against our
7874
# contribution guidelines. See https://github.com/bombsimon/wsl/issues/109.
7975
#
8076
# TODO: bring it back when the above issue is fixed.
8177
- wsl
8278

8379
# Deprecated linters. See https://golangci-lint.run/usage/linters/.
84-
- interfacer
85-
- golint
86-
- maligned
87-
- scopelint
88-
- exhaustivestruct
8980
- bodyclose
9081
- contextcheck
9182
- nilerr
9283
- noctx
9384
- rowserrcheck
9485
- sqlclosecheck
95-
- structcheck
9686
- tparallel
9787
- unparam
9888
- wastedassign
99-
- ifshort
100-
- varcheck
101-
- deadcode
102-
- nosnakecase
89+
90+
# New linters that need a code adjustment first.
91+
- depguard
92+
- testifylint
93+
- intrange
94+
95+
# We use a replace directive for a custom protobuf library.
96+
- gomoddirectives
97+
98+
# The linter is too aggressive and doesn't add much value since reviewers
99+
# will also catch magic numbers that make sense to extract.
100+
- mnd
103101

104102
issues:
105103
# Only show newly introduced problems.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GOACC_PKG := github.com/ory/go-acc
77
GO_BIN := ${GOPATH}/bin
88
LINT_BIN := $(GO_BIN)/golangci-lint
99

10-
LINT_COMMIT := v1.51.2
10+
LINT_COMMIT := v1.64.5
1111

1212
GOBUILD := go build -v
1313
GOINSTALL := go install -v

cmd/wasm-client/go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require (
55
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c
66
github.com/jessevdk/go-flags v1.4.0
77
github.com/lightninglabs/faraday v0.2.13-alpha
8-
github.com/lightninglabs/lightning-node-connect v0.3.2-alpha.0.20240822142323-ee4e7ff52f83
8+
github.com/lightninglabs/lightning-node-connect v0.3.3-alpha.0.20250303090341-f823ad04b9de
99
github.com/lightninglabs/lightning-terminal v0.14.0-alpha
1010
github.com/lightninglabs/loop v0.29.0-beta
1111
github.com/lightninglabs/pool v0.6.5-beta.0.20241015105339-044cb451b5df
@@ -203,7 +203,9 @@ require (
203203
sigs.k8s.io/yaml v1.2.0 // indirect
204204
)
205205

206-
replace github.com/lightninglabs/lightning-node-connect => ../../
206+
// TODO: uncomment once LiT has been updated to point to the latest version of
207+
// LNC and LND.
208+
// replace github.com/lightninglabs/lightning-node-connect => ../../
207209

208210
replace github.com/lightninglabs/lightning-node-connect/hashmailrpc => ../../hashmailrpc
209211

cmd/wasm-client/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,8 @@ github.com/lightninglabs/faraday v0.2.13-alpha h1:rpk3IM5WyyEd/wghGWpGcUyDazQhwd
11231123
github.com/lightninglabs/faraday v0.2.13-alpha/go.mod h1:hzuTMntsY7X3gxeBLZ6kYduZlKtXUgqtk1WnnEF0aIg=
11241124
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc=
11251125
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
1126+
github.com/lightninglabs/lightning-node-connect v0.3.3-alpha.0.20250303090341-f823ad04b9de h1:6BgRi1DJsbQT65Xpv2MHa74NkkjcTsjvSnkanrc5Vfo=
1127+
github.com/lightninglabs/lightning-node-connect v0.3.3-alpha.0.20250303090341-f823ad04b9de/go.mod h1:XVUoEXsLibWHAeSCn9mjvQUnmu+id8tSYl3WiUtVXAA=
11261128
github.com/lightninglabs/lightning-terminal v0.14.0-alpha h1:pHc5UZ/tlvEk5d4dcazIR7gC0Vco1utRMHpG5dD3b/I=
11271129
github.com/lightninglabs/lightning-terminal v0.14.0-alpha/go.mod h1:wUWNHFligQcGcijmIu6KjEOlWKEN8xcZUzhIgyZm8f8=
11281130
github.com/lightninglabs/lightning-terminal/litrpc v1.0.0 h1:7FBvcridXz+EhftcjjbKR6l67pT86YnDFtgLh0A7Htk=

gbn/gbn_conn.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/btcsuite/btclog"
12-
"github.com/lightningnetwork/lnd/build"
11+
"github.com/btcsuite/btclog/v2"
1312
)
1413

1514
var (
@@ -80,8 +79,7 @@ func newGoBackNConn(ctx context.Context, cfg *config,
8079
ctxc, cancel := context.WithCancel(ctx)
8180

8281
// Construct a new prefixed logger.
83-
prefix := fmt.Sprintf("(%s)", loggerPrefix)
84-
plog := build.NewPrefixLog(prefix, log)
82+
plog := log.WithPrefix(fmt.Sprintf("(%s)", loggerPrefix))
8583

8684
timeoutManager := NewTimeOutManager(plog, cfg.timeoutOptions...)
8785

gbn/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package gbn
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

gbn/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"sync"
55
"time"
66

7-
"github.com/btcsuite/btclog"
7+
"github.com/btcsuite/btclog/v2"
88
)
99

1010
type queueCfg struct {

gbn/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"sync"
55
"time"
66

7-
"github.com/btcsuite/btclog"
7+
"github.com/btcsuite/btclog/v2"
88
)
99

1010
const (

gbn/timeout_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync"
66
"time"
77

8-
"github.com/btcsuite/btclog"
8+
"github.com/btcsuite/btclog/v2"
99
)
1010

1111
const (

0 commit comments

Comments
 (0)