New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to go get LND as a library #5624
Comments
Interestingly, if I clone LND repo into my own code, and then use |
This is a bug in the For now, you can fix the problem by adding the following replace into your project's
|
Thanks, this helps |
replace to go.etcd.io/etcd v0.5.0-alpha.5.0.20201125193152-8a03d2e9614b see lightningnetwork/lnd#5624
replace to go.etcd.io/etcd v0.5.0-alpha.5.0.20201125193152-8a03d2e9614b see lightningnetwork/lnd#5624
Background
I want to use LND as a library, embedded into another Go binary. With some recent updates of LND,
go get
fails with errors related to etcd.Your environment
lnd
:v0.13.1-beta
uname -a
on *Nix):Darwin MacBook-Pro-2.local 19.6.0 Darwin Kernel Version 19.6.0: Thu May 6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64 x86_64
btcd
,bitcoind
, or other backend:N/A
.Go 1.16.3
.Steps to reproduce
mkdir lnd-lib && cd lnd-lib
.go mod init lib
.go get github.com/lightningnetwork/lnd@v0.13.1-beta
.Expected behaviour
Library downloaded and ready to be imported.
Actual behaviour
The text was updated successfully, but these errors were encountered: