LN-Zap / lndconnect

Generate QRCode to connect apps to lnd
MIT License
94 stars 23 forks source link

Can not install lndconnect via go get #24

Closed editor-Ajian closed 3 years ago

editor-Ajian commented 3 years ago

I used to install lnd via binnary release in my rapsberry Pi, which use Raspberry Pi OS.

Now I try to install lndconnect via go get ... as read.me describted. But I get an error like below:

pi@raspberrypi:~ $ go get -d github.com/LN-Zap/lndconnect
go: downloading github.com/LN-Zap/lndconnect v0.2.1
go get: github.com/LN-Zap/lndconnect@v0.2.1 requires
    github.com/lightningnetwork/lnd@v0.13.0-beta.rc3 requires
    go.etcd.io/etcd@v3.4.14+incompatible: verifying go.mod: go.etcd.io/etcd@v3.4.14+incompatible/go.mod: reading https://sum.golang.org/lookup/go.etcd.io/etcd@v3.4.14+incompatible: 410 Gone
    server response: not found: go.etcd.io/etcd@v3.4.14+incompatible: invalid version: +incompatible suffix not allowed: module contains a go.mod file, so semantic import versioning is required

I get some information here: https://giters.com/lightningnetwork/lnd/issues/5624#issuecomment-897512230

But I stilll don't know how to fix it.

editor-Ajian commented 3 years ago

I find that the answer in issue#20 is really useful: https://github.com/LN-Zap/lndconnect/issues/20#issuecomment-825211584.

I follow the command described int this answer and every time I try go build the terminal will tell me which dependencies is lack and I will use go mod download to install them.

To my surprise, the last command which the terminal tell me is exactily go get github.com/LN-Zap/lndconnect. So it seems that the command is the last one step rather than the first step.

I strongly recommend to clone this repository with git clone at first and try go build at that folder. Let the terminal tell you which dependencies is needed.