Skip to content

Commit cd9c825

Browse files
committed
make: compile binaries in itest-only
The itest-only goal is really useful for not needing to run the app build. But when switching between lnd versions, it's annoying if the lnd binary isn't built with itest-only. So we change that and always also build the btcd/lnd binaries with itest-only. This will take slightly longer but lead to fewer issues when switching branches between different lnd major versions.
1 parent 2cf8b5b commit cd9c825

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ clean-itest:
217217
@$(call print, "Cleaning itest binaries.")
218218
rm -rf itest/litd-itest itest/btcd-itest itest/lnd-itest
219219

220-
build-itest: app-build
220+
build-itest:
221221
@$(call print, "Building itest binaries.")
222222
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/litd-itest -ldflags "$(ITEST_LDFLAGS)" $(PKG)/cmd/litd
223223
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/btcd-itest -ldflags "$(ITEST_LDFLAGS)" $(BTCD_PKG)
224224
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/lnd-itest -ldflags "$(ITEST_LDFLAGS)" $(LND_PKG)/cmd/lnd
225225

226-
itest-only:
226+
itest-only: build-itest
227227
@$(call print, "Building itest binary.")
228228
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/litd-itest -ldflags "$(ITEST_LDFLAGS)" $(PKG)/cmd/litd
229229
CGO_ENABLED=0 $(GOTEST) -v ./itest -tags="$(DEV_TAGS) $(ITEST_TAGS)" -c -o itest/itest.test
@@ -232,7 +232,7 @@ itest-only:
232232
rm -rf itest/*.log itest/.logs*; date
233233
scripts/itest_part.sh $(ITEST_FLAGS)
234234

235-
itest: build-itest itest-only
235+
itest: app-build build-itest itest-only
236236

237237
# =============
238238
# FLAKE HUNTING

0 commit comments

Comments
 (0)