fn: create new sub-module

In this commit, we make a new sub-module from the `fn` package. This
lets other projects use it w/o pulling in all of lnd, and also other
sub-packages within lnd.

We also add a temp replace directive for new module.  We'll remove this
once we tag the final version.
This commit is contained in:
Olaoluwa Osuntokun 2023-12-06 16:33:43 -08:00
parent 4fa483f1bc
commit b0114efad3
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306
2 changed files with 6 additions and 0 deletions

3
fn/go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/lightningnetwork/lnd/fn
go 1.19

3
go.mod
View File

@ -38,6 +38,7 @@ require (
github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f
github.com/lightningnetwork/lnd/cert v1.2.2 github.com/lightningnetwork/lnd/cert v1.2.2
github.com/lightningnetwork/lnd/clock v1.1.1 github.com/lightningnetwork/lnd/clock v1.1.1
github.com/lightningnetwork/lnd/fn v0.0.0-00010101000000-000000000000
github.com/lightningnetwork/lnd/healthcheck v1.2.3 github.com/lightningnetwork/lnd/healthcheck v1.2.3
github.com/lightningnetwork/lnd/kvdb v1.4.4 github.com/lightningnetwork/lnd/kvdb v1.4.4
github.com/lightningnetwork/lnd/queue v1.1.1 github.com/lightningnetwork/lnd/queue v1.1.1
@ -208,6 +209,8 @@ replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
// allows us to specify that as an option. // allows us to specify that as an option.
replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display
replace github.com/lightningnetwork/lnd/fn => ./fn
// If you change this please also update .github/pull_request_template.md and // If you change this please also update .github/pull_request_template.md and
// docs/INSTALL.md. // docs/INSTALL.md.
go 1.19 go 1.19