MacOS make check-source fixes - #9379
Conversation
Shellcheck 0.11 (SC2268) rejects the old x"$1" comparison idiom. Prevents: "tests/plugins/compacter-slow.sh:5:6: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268]"
|
I can not reproduce the It gives me the same output as on my own debian machine. What is the exact command you use for Afaik it should be: |
|
Hey @daywalker90, I was able to reproduce the issue in CI here: I usually run I believe the reason it might work on your test branch is because you have cherry-picked my changes :) |
|
Oh oops my answer was quite misleading. I meant the docs changes. is one that i noticed for a while now, but have not reported yet. I double checked locally on master where i get this same error. My runs don't seem to get as far as yours to hit that shellcheck error. So i approve of the changes in f371741 but i don't see the need for 3a0e1f5 |
I fixed this with: -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 -- wireNoteably i get no error at all on master now. What shellcheck version are you using? I have 0.10.0 |
3a0e1f5 to
f371741
Compare
|
@daywalker90 I have dropped the second commit and updated the PR description. I'm running shellcheck version 0.11.0. |
Drop obsolete
x"$1"idiom incompacter-slow.sh(ShellCheck SC2268).CI does not hit these, so the failures show up mainly for local macOS contributors.
Changelog-None