From f2715e39ebf5db75d3a64d81ef5c36838c249f0c Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 23 Apr 2025 14:28:45 -0300 Subject: [PATCH] ci: fix 'make rpc' check 'git describe' may not work in CI because of Git shallow clones. We got false negative of this check: https://github.com/lightninglabs/loop/actions/runs/14556035205/job/40959214856 "fatal: No names found, cannot describe anything." --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0cdeff3f..70ca5a06 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ rpc: rpc-check: rpc @$(call print, "Verifying protos.") - if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi + if test -n "$$(git status --porcelain)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi rpc-js-compile: @$(call print, "Compiling JSON/WASM stubs.")