From ba2a0cb2d30a13ac1a8483c575bd841c19d126f1 Mon Sep 17 00:00:00 2001 From: daywalker90 Date: Fri, 7 Aug 2026 16:28:53 +0200 Subject: [PATCH] make: skip extract-bolt-csv if bolts are absent `check-source` -> `check-wire-format` unconditionally ran `extract-bolt-csv`, which failed when `../bolts` was not checked out: ``` /bin/sh: 1: .tmp.lightningrfc/tools/extract-formats.py: not found make: *** [wire/Makefile:54: wire/peer_wire.csv.raw] Error 127 ``` Skip it via `bolt-precheck` when `.tmp.lightningrfc` is missing, matching the `bolt-check` pattern. Changelog-None --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb1f068d7fe6..20d4aedff053 100644 --- a/Makefile +++ b/Makefile @@ -674,7 +674,8 @@ update-doc-examples-newchain: check-doc-examples: update-doc-examples git diff --exit-code HEAD -- doc -check-wire-format: extract-bolt-csv +check-wire-format: bolt-precheck + @if [ -d .tmp.lightningrfc ]; then $(MAKE) extract-bolt-csv; else echo "Not checking BOLTs: BOLTDIR $(BOLTDIR) does not exist" >&2; fi git diff --exit-code HEAD -- wire # SECURITY.md and doc/contribute-to-core-lightning/security-policy.md must be