Skip to content

ci: add gofmt check#199

Draft
zedkipp wants to merge 2 commits intomainfrom
zedkipp/ci-go-fmt
Draft

ci: add gofmt check#199
zedkipp wants to merge 2 commits intomainfrom
zedkipp/ci-go-fmt

Conversation

@zedkipp
Copy link
Copy Markdown

@zedkipp zedkipp commented Apr 22, 2026

Adds a formatting check to CI that fails when any Go file is not gofmt-clean.

Nothing in CI catches unformatted Go today: .github/workflows/lint.yml installs golangci-lint but never runs it. This change adds a fmt job to the same workflow that runs make fmt and uses the existing scripts/check_unstaged.sh to fail on any diff. types/diagnostics_test.go was already not gofmt-clean on main; that reformat is included as a separate commit.

Generated with Coder Agents.

zedkipp added 2 commits April 22, 2026 11:41
Adds a `make fmt` target that runs `gofmt -w .` and a matching
`fmt` job in the existing Lint workflow. The job runs `make fmt` and
fails via the existing `scripts/check_unstaged.sh` when any Go file
is not formatted.

Generated with Coder Agents.
Result of running the newly added `make fmt` against the tree.

Generated with Coder Agents.
@zedkipp zedkipp force-pushed the zedkipp/ci-go-fmt branch from ae10665 to 1d162cd Compare April 22, 2026 17:42
@zedkipp zedkipp changed the title ci(.github/workflows): add gofmt check ci: add gofmt check Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant