Duplicate symbol errors occur with both require go-ethereum and lotus release/v1.20.0 #10148
Replies: 4 comments
-
Related to filecoin-project/go-address#16. |
Beta Was this translation helpful? Give feedback.
-
The issue is that Lotus depends on |
Beta Was this translation helpful? Give feedback.
-
Perhaps a surgical replace directive could coalesce both imports into a single one -- but I don't think replace directives work at a package level. I belive the OP is just the Lotus RPC client and the Ethereum RPC client. It's a bit suss anyway that Go doesn't tree-shake to realise that it doesn't actually need to import the crypto parts (or does it?). Also, both Lotus and go-ethereum could afford to offer client libraries just for RPC interaction. |
Beta Was this translation helpful? Give feedback.
-
Here's a magical fix from @Schwartz10:
This is a version with some renamed symbols: https://github.com/glifio/go-secp256k1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
os: mac os
golang version: 1.19
I need to require in the
go-ethereum
sdk to parse the events of the fvm contract, and also the lotus sdk, this is my go.mod:when run
go build
will happen:Logging Information
Repo Steps
go build
Beta Was this translation helpful? Give feedback.
All reactions