-
Notifications
You must be signed in to change notification settings - Fork 75
btcec update leads to go mod tidy
failure
#252
Comments
Looking at this now. |
Can we fix our CI globally to do 1.17 compat tidy? |
We could, but the problem is that every user of go-libp2p would not be able to run a normal I don't really understand why the Go tool would care about 1.16 when the |
I found another change that makes the errors go away - see libp2p/go-libp2p#1524 - but I'm yet to understand exactly what's going on. |
Adding the following file to go-libp2p works: //go:build !go1.17
// +build !go1.17
package libp2p
import (
_ "github.com/btcsuite/btcd/chaincfg"
) and then making sure that |
This could also be applied in this repo: #254 Not sure where the right place for this to live would be. Thoughts? |
Given what I've read so far here's my guess. Before
This is fine, these two are compatible (in terms of what The only version of After
But now it also depends on
And transitively, it also starts depending on released
Now we have 2 incompatible versions of ResolutionWe can either force replace
The latter seems cleaner but it's much more work. |
Nice! I tested it locally and it seems to do the trick :) TestingI checked out your branch in |
I think maybe #252 (comment) fits better in go-libp2p because we'd be able to remove it once/if we stop transitively depending on lower versions? Either way, I think yours is better than my replace all. |
We just released v0.16.0, which include the btcec update (#245).
go mod tidy
now produces the following error (see libp2p/go-libp2p#1521):Updating btced to v2.2.0 (from v2.1.3) doesn't solve the problem. I also haven't succeeded in manually adding
github.com/btcsuite/btcd/chaincfg/chainhash
to go-libp2p'sgo.mod
file.People had a similar issue in btcsuite/btcd#1839, but I couldn't make it work in go-libp2p either.
This is now blocking the go-libp2p v0.20.0 release. I'm planning to revert #245, unless we can get this solved within the next 24 hours or so.
cc @brianathere
The text was updated successfully, but these errors were encountered: