Skip to content

chore: restore gofmt/goimports formatting (unbreak Go CI)#2245

Open
rhiannalitchfield wants to merge 1 commit into
AgentWrapper:mainfrom
rhiannalitchfield:fix/gofmt-formatting
Open

chore: restore gofmt/goimports formatting (unbreak Go CI)#2245
rhiannalitchfield wants to merge 1 commit into
AgentWrapper:mainfrom
rhiannalitchfield:fix/gofmt-formatting

Conversation

@rhiannalitchfield

Copy link
Copy Markdown

What

Restores gofmt/goimports formatting on three files so the Go workflow passes again.

Why

main has been red on the Go workflow since #2219. That PR changed legacyProjectConfig.Repo from string to *yaml.Node and added a doc comment, which split the struct's gofmt alignment blocks, but it was merged without re-running the formatter. As a result, on main today:

  • the build-test job fails at Check formatting (gofmt -l .)
  • the lint job fails at golangci-lint (goimports)

Affected files:

  • internal/legacyimport/config.go — struct field alignment
  • internal/legacyimport/project_test.go — local import grouping (goimports local-prefixes)
  • internal/service/importer/importer_test.go — struct expansion

How

Ran golangci-lint fmt (gofmt + goimports with the repo's configured local-prefixes). Formatting only, no behavior change.

Verification

  • gofmt -l clean on the touched files
  • golangci-lint run → 0 issues
  • go build ./..., go vet ./..., and go test on the touched packages all pass

🤖 Generated with Claude Code

The Go workflow (build-test "Check formatting" and the golangci-lint
job) has been red on main since AgentWrapper#2219. That PR changed
legacyProjectConfig.Repo to *yaml.Node and added a doc comment without
re-running the formatter, leaving three files unformatted:

  - internal/legacyimport/config.go            struct field alignment
  - internal/legacyimport/project_test.go      local import grouping
  - internal/service/importer/importer_test.go struct expansion

Apply `golangci-lint fmt` (gofmt + goimports with the repo's configured
local-prefixes). Formatting only; no behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rhiannalitchfield rhiannalitchfield changed the title style: restore gofmt/goimports formatting (unbreak Go CI) chore: restore gofmt/goimports formatting (unbreak Go CI) Jun 27, 2026
@rhiannalitchfield rhiannalitchfield marked this pull request as ready for review June 27, 2026 19:39
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