Skip to content

Commit 4a15de0

Browse files
committed
build: update go-pretty v6 [skip ci]
In this commit we update go-pretty to use the latest v6 version of the library. The existing version we used had a reported vulnerability. Updating to this newest version also helped to shrink our set of indirect dependencies. In the future we can use #5870 to detect/flag these issues automatically. Fixes #6293
1 parent e7505c3 commit 4a15de0

File tree

3 files changed

+11
-79
lines changed

3 files changed

+11
-79
lines changed

cmd/lncli/cmd_payments.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"time"
1616

1717
"github.com/btcsuite/btcutil"
18-
"github.com/jedib0t/go-pretty/table"
19-
"github.com/jedib0t/go-pretty/text"
18+
"github.com/jedib0t/go-pretty/v6/table"
19+
"github.com/jedib0t/go-pretty/v6/text"
2020
"github.com/lightninglabs/protobuf-hex-display/jsonpb"
2121
"github.com/lightningnetwork/lnd/chainreg"
2222
"github.com/lightningnetwork/lnd/lnrpc"

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ require (
1818
github.com/davecgh/go-spew v1.1.1
1919
github.com/dvyukov/go-fuzz v0.0.0-20210602112143-b1f3d6f4ef4e
2020
github.com/go-errors/errors v1.0.1
21-
github.com/go-openapi/strfmt v0.19.5 // indirect
2221
github.com/golang/protobuf v1.5.2
2322
github.com/gorilla/websocket v1.4.2
2423
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
@@ -27,7 +26,7 @@ require (
2726
github.com/jackc/pgx/v4 v4.13.0
2827
github.com/jackpal/gateway v1.0.5
2928
github.com/jackpal/go-nat-pmp v0.0.0-20170405195558-28a68d0c24ad
30-
github.com/jedib0t/go-pretty v4.3.0+incompatible
29+
github.com/jedib0t/go-pretty/v6 v6.2.7
3130
github.com/jessevdk/go-flags v1.4.0
3231
github.com/jrick/logrotate v1.0.0
3332
github.com/juju/clock v0.0.0-20190205081909-9c5c9712527c // indirect
@@ -50,9 +49,7 @@ require (
5049
github.com/lightningnetwork/lnd/ticker v1.1.0
5150
github.com/lightningnetwork/lnd/tlv v1.0.1
5251
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796
53-
github.com/mattn/go-runewidth v0.0.9 // indirect
5452
github.com/miekg/dns v1.1.43
55-
github.com/mitchellh/mapstructure v1.3.2 // indirect
5653
github.com/prometheus/client_golang v1.11.0
5754
github.com/stretchr/testify v1.7.0
5855
github.com/tv42/zbase32 v0.0.0-20160707012821-501572607d02

0 commit comments

Comments
 (0)