filecoin-project / go-legs

Does the legwork for go-data-transfer
Apache License 2.0
20 stars 14 forks source link

Update for go1.19 #150

Closed gammazero closed 2 years ago

gammazero commented 2 years ago

Update dependencies and allow building with go1.19.

codecov-commenter commented 2 years ago

Codecov Report

Merging #150 (3e90699) into main (a9fac8a) will increase coverage by 0.24%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   64.47%   64.72%   +0.24%     
==========================================
  Files          22       22              
  Lines        2418     2418              
==========================================
+ Hits         1559     1565       +6     
+ Misses        676      669       -7     
- Partials      183      184       +1     
Impacted Files Coverage Δ
p2p/protocol/head/head.go 60.63% <100.00%> (ø)
test/util.go 82.41% <0.00%> (+3.01%) :arrow_up:
github-actions[bot] commented 2 years ago

Suggested version: v0.4.10 Comparing to: v0.4.9 (diff)

Changes in go.mod file(s):

diff --git a/go.mod b/go.mod
index 5351d4a..31eeca4 100644
--- a/go.mod
+++ b/go.mod
@@ -1,58 +1,53 @@
 module github.com/filecoin-project/go-legs

-go 1.17
+go 1.18

 require (
-   github.com/filecoin-project/go-data-transfer v1.15.1
+   github.com/filecoin-project/go-data-transfer v1.15.2
    github.com/hashicorp/go-multierror v1.1.1
-   github.com/ipfs/go-cid v0.1.0
+   github.com/ipfs/go-cid v0.2.0
    github.com/ipfs/go-datastore v0.5.1
-   github.com/ipfs/go-graphsync v0.13.1
+   github.com/ipfs/go-graphsync v0.13.2
    github.com/ipfs/go-log/v2 v2.5.1
-   github.com/ipld/go-ipld-prime v0.16.0
-   github.com/libp2p/go-libp2p v0.20.1
-   github.com/libp2p/go-libp2p-core v0.16.1
-   github.com/libp2p/go-libp2p-gostream v0.3.1
-   github.com/libp2p/go-libp2p-peerstore v0.7.0
-   github.com/libp2p/go-libp2p-pubsub v0.7.0
-   github.com/multiformats/go-multiaddr v0.5.0
-   github.com/multiformats/go-multicodec v0.4.1
-   github.com/multiformats/go-multistream v0.3.1
-   github.com/stretchr/testify v1.7.1
-   github.com/whyrusleeping/cbor-gen v0.0.0-20220302191723-37c43cae8e14
-   golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
+   github.com/ipld/go-ipld-prime v0.17.0
+   github.com/libp2p/go-libp2p v0.22.0
+   github.com/libp2p/go-libp2p-gostream v0.4.0
+   github.com/libp2p/go-libp2p-pubsub v0.7.1
+   github.com/multiformats/go-multiaddr v0.6.0
+   github.com/multiformats/go-multicodec v0.5.0
+   github.com/multiformats/go-multistream v0.3.3
+   github.com/stretchr/testify v1.8.0
+   github.com/whyrusleeping/cbor-gen v0.0.0-20220514204315-f29c37e9c44c
+   golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
    golang.org/x/time v0.0.0-20191024005414-555d28b269f0
-   golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
+   golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f
 )

 require (
    github.com/benbjohnson/clock v1.3.0 // indirect
    github.com/beorn7/perks v1.0.1 // indirect
    github.com/bep/debounce v1.2.0 // indirect
-   github.com/btcsuite/btcd v0.22.1 // indirect
-   github.com/btcsuite/btcd/btcec/v2 v2.1.3 // indirect
-   github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
    github.com/cespare/xxhash/v2 v2.1.2 // indirect
    github.com/cheekybits/genny v1.0.0 // indirect
-   github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327 // indirect
-   github.com/coreos/go-systemd/v22 v22.1.0 // indirect
+   github.com/containerd/cgroups v1.0.4 // indirect
+   github.com/coreos/go-systemd/v22 v22.3.2 // indirect
    github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
    github.com/davecgh/go-spew v1.1.1 // indirect
    github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
-   github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
+   github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
    github.com/docker/go-units v0.4.0 // indirect
-   github.com/elastic/gosigar v0.12.0 // indirect
+   github.com/elastic/gosigar v0.14.2 // indirect
    github.com/filecoin-project/go-cbor-util v0.0.0-20191219014500-08c40a1e63a2 // indirect
    github.com/filecoin-project/go-ds-versioning v0.1.1 // indirect
    github.com/filecoin-project/go-statemachine v1.0.2-0.20220322104818-27f8fbb86dfd // indirect
    github.com/filecoin-project/go-statestore v0.2.0 // indirect
    github.com/flynn/noise v1.0.0 // indirect
    github.com/francoispqt/gojay v1.2.13 // indirect
-   github.com/fsnotify/fsnotify v1.4.9 // indirect
+   github.com/fsnotify/fsnotify v1.5.4 // indirect
    github.com/go-logr/logr v1.2.1 // indirect
    github.com/go-logr/stdr v1.2.0 // indirect
    github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
-   github.com/godbus/dbus/v5 v5.0.3 // indirect
+   github.com/godbus/dbus/v5 v5.1.0 // indirect
    github.com/gogo/protobuf v1.3.2 // indirect
    github.com/golang/protobuf v1.5.2 // indirect
    github.com/google/gopacket v1.1.19 // indirect
@@ -62,7 +57,7 @@ require (
    github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e // indirect
    github.com/hashicorp/errwrap v1.0.0 // indirect
    github.com/hashicorp/golang-lru v0.5.4 // indirect
-   github.com/huin/goupnp v1.0.2 // indirect
+   github.com/huin/goupnp v1.0.3 // indirect
    github.com/ipfs/go-block-format v0.0.3 // indirect
    github.com/ipfs/go-ipfs-pq v0.0.2 // indirect
    github.com/ipfs/go-ipfs-util v0.0.2 // indirect
@@ -76,43 +71,44 @@ require (
    github.com/jbenet/goprocess v0.1.4 // indirect
    github.com/jpillora/backoff v1.0.0 // indirect
    github.com/klauspost/compress v1.15.1 // indirect
-   github.com/klauspost/cpuid/v2 v2.0.9 // indirect
-   github.com/koron/go-ssdp v0.0.2 // indirect
-   github.com/libp2p/go-buffer-pool v0.0.2 // indirect
+   github.com/klauspost/cpuid/v2 v2.1.0 // indirect
+   github.com/koron/go-ssdp v0.0.3 // indirect
+   github.com/libp2p/go-buffer-pool v0.1.0 // indirect
    github.com/libp2p/go-cidranger v1.1.0 // indirect
-   github.com/libp2p/go-eventbus v0.2.1 // indirect
-   github.com/libp2p/go-flow-metrics v0.0.3 // indirect
+   github.com/libp2p/go-flow-metrics v0.1.0 // indirect
    github.com/libp2p/go-libp2p-asn-util v0.2.0 // indirect
+   github.com/libp2p/go-libp2p-core v0.20.0 // indirect
    github.com/libp2p/go-libp2p-discovery v0.7.0 // indirect
-   github.com/libp2p/go-libp2p-resource-manager v0.3.0 // indirect
+   github.com/libp2p/go-libp2p-swarm v0.11.0 // indirect
    github.com/libp2p/go-msgio v0.2.0 // indirect
    github.com/libp2p/go-nat v0.1.0 // indirect
    github.com/libp2p/go-netroute v0.2.0 // indirect
-   github.com/libp2p/go-openssl v0.0.7 // indirect
+   github.com/libp2p/go-openssl v0.1.0 // indirect
    github.com/libp2p/go-reuseport v0.2.0 // indirect
    github.com/libp2p/go-yamux/v3 v3.1.2 // indirect
-   github.com/lucas-clemente/quic-go v0.27.1 // indirect
+   github.com/lucas-clemente/quic-go v0.28.1 // indirect
    github.com/marten-seemann/qtls-go1-16 v0.1.5 // indirect
-   github.com/marten-seemann/qtls-go1-17 v0.1.1 // indirect
-   github.com/marten-seemann/qtls-go1-18 v0.1.1 // indirect
+   github.com/marten-seemann/qtls-go1-17 v0.1.2 // indirect
+   github.com/marten-seemann/qtls-go1-18 v0.1.2 // indirect
+   github.com/marten-seemann/qtls-go1-19 v0.1.0 // indirect
    github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
-   github.com/mattn/go-isatty v0.0.14 // indirect
+   github.com/mattn/go-isatty v0.0.16 // indirect
+   github.com/mattn/go-pointer v0.0.1 // indirect
    github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
-   github.com/miekg/dns v1.1.43 // indirect
+   github.com/miekg/dns v1.1.50 // indirect
    github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
    github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
-   github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
    github.com/minio/sha256-simd v1.0.0 // indirect
    github.com/mr-tron/base58 v1.2.0 // indirect
-   github.com/multiformats/go-base32 v0.0.3 // indirect
+   github.com/multiformats/go-base32 v0.0.4 // indirect
    github.com/multiformats/go-base36 v0.1.0 // indirect
    github.com/multiformats/go-multiaddr-dns v0.3.1 // indirect
    github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
-   github.com/multiformats/go-multibase v0.0.3 // indirect
-   github.com/multiformats/go-multihash v0.1.0 // indirect
+   github.com/multiformats/go-multibase v0.1.1 // indirect
+   github.com/multiformats/go-multihash v0.2.1 // indirect
    github.com/multiformats/go-varint v0.0.6 // indirect
    github.com/nxadm/tail v1.4.8 // indirect
-   github.com/onsi/ginkgo v1.16.4 // indirect
+   github.com/onsi/ginkgo v1.16.5 // indirect
    github.com/opencontainers/runtime-spec v1.0.2 // indirect
    github.com/opentracing/opentracing-go v1.2.0 // indirect
    github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
@@ -121,29 +117,28 @@ require (
    github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e // indirect
    github.com/prometheus/client_golang v1.12.1 // indirect
    github.com/prometheus/client_model v0.2.0 // indirect
-   github.com/prometheus/common v0.32.1 // indirect
-   github.com/prometheus/procfs v0.7.3 // indirect
-   github.com/raulk/clock v1.1.0 // indirect
-   github.com/raulk/go-watchdog v1.2.0 // indirect
+   github.com/prometheus/common v0.37.0 // indirect
+   github.com/prometheus/procfs v0.8.0 // indirect
+   github.com/raulk/go-watchdog v1.3.0 // indirect
    github.com/russross/blackfriday/v2 v2.0.1 // indirect
    github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
    github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
    github.com/spaolacci/murmur3 v1.1.0 // indirect
    github.com/urfave/cli/v2 v2.0.0 // indirect
-   github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 // indirect
    github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee // indirect
    go.opentelemetry.io/otel v1.3.0 // indirect
    go.opentelemetry.io/otel/trace v1.3.0 // indirect
-   go.uber.org/atomic v1.9.0 // indirect
-   go.uber.org/multierr v1.7.0 // indirect
-   go.uber.org/zap v1.19.1 // indirect
-   golang.org/x/mod v0.4.2 // indirect
-   golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
-   golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
-   golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
-   golang.org/x/tools v0.1.5 // indirect
-   google.golang.org/protobuf v1.27.1 // indirect
+   go.uber.org/atomic v1.10.0 // indirect
+   go.uber.org/multierr v1.8.0 // indirect
+   go.uber.org/zap v1.22.0 // indirect
+   golang.org/x/exp v0.0.0-20220426173459-3bcf042a4bf5 // indirect
+   golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
+   golang.org/x/net v0.0.0-20220812174116-3211cb980234 // indirect
+   golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
+   golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
+   golang.org/x/tools v0.1.12 // indirect
+   google.golang.org/protobuf v1.28.1 // indirect
    gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
-   gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
-   lukechampine.com/blake3 v1.1.6 // indirect
+   gopkg.in/yaml.v3 v3.0.1 // indirect
+   lukechampine.com/blake3 v1.1.7 // indirect
 )

gorelease says:

# diagnostics
required module github.com/microcosm-cc/bluemonday@v1.0.1 retracted by module author: Retract older versions as only latest is to be depended upon

# summary
Suggested version: v0.5.0

gocompat says:

(empty)