Skip to content

can't build latest litd with latest lnd #1044

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

Closed
ZZiigguurraatt opened this issue Apr 18, 2025 · 5 comments
Closed

can't build latest litd with latest lnd #1044

ZZiigguurraatt opened this issue Apr 18, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@ZZiigguurraatt
Copy link

I'm trying to build lightning-terminal from the master branch using commit b0230d4ae4806a8904f6a932e557ee396802d411 and the latest commit of lnd on the master branch.

In order to do this, I try to run the following:

go mod edit -replace=github.com/lightningnetwork/lnd=github.com/lightningnetwork/lnd@master
$ go mod tidy
go: downloading github.com/lightningnetwork/lnd v0.19.0-beta.rc2.0.20250417205007-51add8a701ee
$

Inside go.mod, there is a line added at the end

replace github.com/lightningnetwork/lnd => github.com/lightningnetwork/lnd v0.19.0-beta.rc2.0.20250417205007-51add8a701ee

I then run make, but that errors out with

# github.com/lightninglabs/taproot-assets/tapchannel
/home/zzzzz/go/pkg/mod/github.com/lightninglabs/[email protected]/tapchannel/aux_leaf_creator.go:55:35: cannot use in.UnfilteredView (variable of type lnwallet.AuxHtlcView) as *lnwallet.HtlcView value in argument to GenerateCommitmentAllocations
/home/zzzzz/go/pkg/mod/github.com/lightninglabs/[email protected]/tapchannel/aux_leaf_creator.go:253:35: cannot use in.UnfilteredView (variable of type lnwallet.AuxHtlcView) as *lnwallet.HtlcView value in argument to GenerateCommitmentAllocations
github.com/lightninglabs/taproot-assets/rpcperms
make: *** [Makefile:132: go-build] Error 1
@ZZiigguurraatt ZZiigguurraatt added the bug Something isn't working label Apr 18, 2025
@ziggie1984
Copy link

it does not work because it needs lightninglabs/taproot-assets#1462

@ZZiigguurraatt
Copy link
Author

lightninglabs/taproot-assets#1462 has been merged but now I'm getting

github.com/lightningnetwork/lnd/lnrpc/walletrpc
# github.com/lightningnetwork/lnd/lncfg
/home/zzzzz/go/pkg/mod/github.com/lightningnetwork/[email protected]/lncfg/db.go:453:26: postgresConfigWalletDB.WithGlobalLock undefined (type *postgres.Config has no field or method WithGlobalLock)
github.com/lightningnetwork/lnd/lnwallet/chancloser
github.com/lightningnetwork/lnd/routing
github.com/lightningnetwork/lnd/routing/localchans
github.com/lightningnetwork/lnd/lnrpc/invoicesrpc
github.com/lightningnetwork/lnd/chanacceptor
github.com/lightningnetwork/lnd/lnrpc/routerrpc
make: *** [Makefile:132: go-build] Error 1

@guggero guggero closed this as completed Apr 23, 2025
@guggero
Copy link
Member

guggero commented Apr 23, 2025

Please use lightninglabs/taproot-assets#1478 as a base, which is updated to work with the latest versions.

@ZZiigguurraatt
Copy link
Author

That doesn't work. Now getting

141.9 # github.com/lightninglabs/loop/test
141.9 /go/pkg/mod/github.com/lightninglabs/[email protected]/test/lnd_services_mock.go:42:19: cannot use lightningClient (variable of type *mockLightningClient) as lndclient.LightningClient value in struct literal: *mockLightningClient does not implement lndclient.LightningClient (wrong type for method ListChannels)
141.9 		have ListChannels("golang.org/x/net/context".Context, bool, bool) ([]lndclient.ChannelInfo, error)
141.9 		want ListChannels("context".Context, bool, bool, ...lndclient.ListChannelsOption) ([]lndclient.ChannelInfo, error)
141.9 github.com/lightninglabs/loop/sweep

@guggero
Copy link
Member

guggero commented Apr 23, 2025

Sorry, I meant to link this PR: #987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants