Skip to content

Commit ffa7bed

Browse files
committed
build+routerrpc+lncli: remove routerrpc conditional compilation
1 parent e11a3b2 commit ffa7bed

17 files changed

+8
-65
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ run:
1717
- autopilotrpc
1818
- chainrpc
1919
- invoicesrpc
20-
- routerrpc
2120
- signrpc
2221
- walletrpc
2322
- watchtowerrpc

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN apk add --no-cache --update alpine-sdk \
1818
&& cd /go/src/github.com/lightningnetwork/lnd \
1919
&& git checkout $checkout \
2020
&& make \
21-
&& make install tags="signrpc walletrpc chainrpc invoicesrpc routerrpc"
21+
&& make install tags="signrpc walletrpc chainrpc invoicesrpc"
2222

2323
# Start a new, final image.
2424
FROM alpine as final

build/release/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ for i in $SYS; do
130130
cd $PACKAGE-$i-$TAG
131131

132132
echo "Building:" $OS $ARCH $ARM
133-
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -trimpath -ldflags="-s -w -buildid= $COMMITFLAGS" -tags="autopilotrpc signrpc walletrpc chainrpc invoicesrpc routerrpc watchtowerrpc" github.com/lightningnetwork/lnd/cmd/lnd
134-
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -trimpath -ldflags="-s -w -buildid= $COMMITFLAGS" -tags="autopilotrpc invoicesrpc walletrpc routerrpc watchtowerrpc" github.com/lightningnetwork/lnd/cmd/lncli
133+
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -trimpath -ldflags="-s -w -buildid= $COMMITFLAGS" -tags="autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc" github.com/lightningnetwork/lnd/cmd/lnd
134+
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -trimpath -ldflags="-s -w -buildid= $COMMITFLAGS" -tags="autopilotrpc invoicesrpc walletrpc watchtowerrpc" github.com/lightningnetwork/lnd/cmd/lncli
135135
cd ..
136136

137137
if [[ $OS = "windows" ]]; then

cmd/lncli/cmd_build_route.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package main
42

53
import (

cmd/lncli/cmd_query_mission_control.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package main
42

53
import (

cmd/lncli/cmd_query_probability.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package main
42

53
import (

cmd/lncli/cmd_reset_mission_control.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package main
42

53
import (

cmd/lncli/routerrpc_active.go renamed to cmd/lncli/routerrpc.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// +build routerrpc
2-
31
package main
42

53
import "github.com/urfave/cli"
64

7-
// routerCommands will return nil for non-routerrpc builds.
5+
// routerCommands returns a list of routerrpc commands.
86
func routerCommands() []cli.Command {
97
return []cli.Command{
108
queryMissionControlCommand,

cmd/lncli/routerrpc_default.go

Lines changed: 0 additions & 10 deletions
This file was deleted.

docker/lnd/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COPY . /go/src/github.com/lightningnetwork/lnd
1616

1717
RUN cd /go/src/github.com/lightningnetwork/lnd \
1818
&& make \
19-
&& make install tags="signrpc walletrpc chainrpc invoicesrpc routerrpc"
19+
&& make install tags="signrpc walletrpc chainrpc invoicesrpc"
2020

2121
# Start a new, final image to reduce size.
2222
FROM alpine as final

lnrpc/routerrpc/config_active.go renamed to lnrpc/routerrpc/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package routerrpc
42

53
import (

lnrpc/routerrpc/config_default.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

lnrpc/routerrpc/driver.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package routerrpc
42

53
import (

lnrpc/routerrpc/router_server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package routerrpc
42

53
import (

lnrpc/routerrpc/subscribe_events.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build routerrpc
2-
31
package routerrpc
42

53
import (

make/testing_flags.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ backend = btcd
6161
endif
6262

6363
# Construct the integration test command with the added build flags.
64-
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc routerrpc watchtowerrpc $(backend)
64+
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc watchtowerrpc $(backend)
6565

6666
ITEST := rm lntest/itest/*.log; date; $(GOTEST) -v ./lntest/itest -tags="$(ITEST_TAGS)" $(TEST_FLAGS) -logoutput -goroutinedump

mobile/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Similar to lnd, subservers can be conditionally compiled with the build by
5353
setting the tags argument:
5454

5555
```
56-
make ios tags="routerrpc"
56+
make ios
5757
```
5858

5959
To support subservers that have APIs with name conflicts, pass the "prefix"
6060
flag. This will add the subserver name as a prefix to each method name:
6161

6262
```
63-
make ios tags="routerrpc" prefix=1
63+
make ios prefix=1
6464
```
6565

6666
### API docs

0 commit comments

Comments
 (0)