From 5f089d6cfa1d51b8a9111b75b42777c32437e112 Mon Sep 17 00:00:00 2001 From: kartikey1306 Date: Tue, 10 Nov 2026 11:49:05 +0530 Subject: [PATCH] ci: run the gofmt check on every Go folder The Gofmt check step listed three folders (cmd core transport), so an unformatted file in config, examples, protocol, security, services or tests passed CI. Run gofmt -l . instead, which is the command CONTRIBUTING.md and AGENTS.md already give. The whole tree is clean today, so the step stays green. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38fe7e6..5f853a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,11 @@ jobs: - name: Gofmt check shell: bash + # Check every Go file in the module, not a hand-kept list of + # folders: the old list (cmd core transport) skipped config, + # examples, protocol, security, services and tests. run: | - out=$(gofmt -l cmd core transport) + out=$(gofmt -l .) if [ -n "$out" ]; then echo "::error::files need gofmt: $out" exit 1