refactor(dev): switch to gopls for formatting to fix race condition#4
Conversation
Greptile SummaryThis PR replaces the race-prone external formatter pipeline (a shell-locked Key changes:
Note: The PR description mentions removing Confidence Score: 5/5Safe to merge — all previously flagged issues are resolved and no new issues were found. All P1 concerns from prior review threads (gci in tool block, tool ordering in Makefile) are correctly addressed. The go.mod/go.sum changes are consistent with a go mod tidy run. No new logic bugs, security issues, or regressions were identified. All four changed files are in good shape. No files require special attention. Important Files Changed
|
Replace external formatter (gci + shell script with locking) with gopls LSP formatting. This eliminates file corruption issues when saving rapidly in Zed. - Update .zed/settings.json to use gopls with format_on_save - Replace gci with goimports in Makefile to match gopls behavior - Remove scripts/fmt-single.sh (no longer needed) - Enable gofumpt formatting via gopls settings
|
@greptile review |
What this PR for?
Replace external formatter (gci + shell script with locking) with gopls LSP formatting. This eliminates file corruption issues when saving rapidly in Zed.
What did you do for validating the changes?
Anything else you want to add? (Optional)