From b0114efad3b13a65d6a0784428ff8cae4a57afe7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 6 Dec 2023 16:33:43 -0800 Subject: [PATCH] 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. --- fn/go.mod | 3 +++ go.mod | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 fn/go.mod diff --git a/fn/go.mod b/fn/go.mod new file mode 100644 index 000000000..6879fc382 --- /dev/null +++ b/fn/go.mod @@ -0,0 +1,3 @@ +module github.com/lightningnetwork/lnd/fn + +go 1.19 diff --git a/go.mod b/go.mod index a0f021761..208f73afe 100644 --- a/go.mod +++ b/go.mod @@ -38,6 +38,7 @@ require ( github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f github.com/lightningnetwork/lnd/cert v1.2.2 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/kvdb v1.4.4 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. 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 // docs/INSTALL.md. go 1.19