Skip to content

Commit 3d12bb9

Browse files
make: remove plugins/clnrest dir prior to building clnrest
When building in the same directory used for <=v24.11, this would occur: cp: cannot create regular file plugins/clnrest: Permission denied make: *** [plugins/Makefile:149: plugins/clnrest] Error 1 make: *** Waiting for unfinished jobs.... Remove the old directory so the new rust binary can take its place. Changelog-Fixed: `make` cleans up old clnrest directory prior to building the new plugin.
1 parent 2e6ad3f commit 3d12bb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ CLN_REST_PLUGIN_SRC = $(shell find plugins/rest-plugin/src -name "*.rs")
304304
target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL) $(MSGGEN_GEN_ALL)
305305
cargo build ${CARGO_OPTS} --bin cln-grpc
306306
target/${RUST_PROFILE}/clnrest: ${CLN_REST_PLUGIN_SRC}
307+
@if [ -d "plugins/clnrest" ]; then rm -rf plugins/clnrest; fi
307308
cargo build ${CARGO_OPTS} --bin clnrest
308309

309310
ifneq ($(RUST),0)

0 commit comments

Comments
 (0)