chore: upgrade libp2p package#240
Conversation
- upgrade go-libp2p and its related libs - update method calls due to go-libp2p version upgrade - remove duplicate sync import in network.go - run go mod tidy
Codecov Report
@@ Coverage Diff @@
## main #240 +/- ##
=======================================
Coverage 81.49% 81.49%
=======================================
Files 125 125
Lines 5052 5052
=======================================
Hits 4117 4117
Misses 690 690
Partials 245 245 |
|
I probably caused these incompatibilities by running |
|
@mhatvan You can update alpine version inside dockerfile to support go version 17: About the mDNS legacy version, they have plan to remove it. Look at here: https://github.com/libp2p/go-libp2p/pull/1192/files
Shouldn't be. Updating go version in workflow should fix it: https://github.com/zarbchain/zarb-go/blob/01ca59d44f778a7fbeb2de02debbddcd91909f91/.github/workflows/testing.yml#L15 |
- update alpine docker container to use 3.15
I tried to update the respective code but don't know how exactly. I would hand this over to you. |
Description
go-libp2pand its related libsgo-libp2pversion upgradesyncimport innetwork.gogo mod tidygoversion intesting.ymlto 1.17dockercontainer to usealpine3.15Please note that
lp2pdiscoveryis updated to use themdns_legacymodule which keeps compatibility with the current code.There is also
mdnswhich should probably be used instead when refactoring the code.Related issue(s)
Closes #238
Checklist