Skip to content

fix(ci): apply gofmt -s across the tree#176

Merged
rafeegnash merged 1 commit into
masterfrom
fix/ci-gofmt
May 26, 2026
Merged

fix(ci): apply gofmt -s across the tree#176
rafeegnash merged 1 commit into
masterfrom
fix/ci-gofmt

Conversation

@rafeegnash
Copy link
Copy Markdown
Collaborator

Summary

  • Master CI is red on the Lint job — gofmt -s -l . reports 15 files needing simplification (mostly struct-field alignment).
  • This PR is the mechanical output of gofmt -s -w ., no logic changes.

Files touched

  • cmd/ask.go
  • internal/ai/client.go
  • internal/api/{history,routes,routes_maker,routes_plan,server}.go
  • internal/tencent/{context,db_exposure,expiry,json_api,raw,security_scan,security_scan_p10,topology}.go

Verification

  • gofmt -s -l . → 0 files
  • go vet ./... → clean
  • go test ./internal/api/ ./internal/maker/ -count=1 → pass

CI's lint job runs `gofmt -s -l .` and fails when it returns anything;
master is currently red because 15 files (mostly from the Tencent merge
plus a few older spots in cmd/ask.go and internal/ai/client.go) need
gofmt's simplifications applied. This commit is the mechanical result
of `gofmt -s -w .` — pure struct-field-alignment whitespace, no logic
changes. `go vet ./...` is clean and the api / maker tests still pass.
@rafeegnash rafeegnash merged commit b6a4455 into master May 26, 2026
5 checks passed
@rafeegnash rafeegnash deleted the fix/ci-gofmt branch May 26, 2026 10:12
rephapeng added a commit to rephapeng/clanker that referenced this pull request May 28, 2026
Upstream merged PR bgdnvk#165 (Tencent provider) and added work on top:
k8s SRE playbooks (bgdnvk#174), SRE agent fix (bgdnvk#177), tree-wide gofmt -s
(bgdnvk#176), README (bgdnvk#175), and three Tencent CLI features the fork lacked
— `list --format json` (bgdnvk#179), `cost --format json` (bgdnvk#180), and
security-scan CLI subcommands (bgdnvk#181).

Conflict resolution: all 16 conflicts resolved to upstream's side.
14 were pure gofmt whitespace from bgdnvk#176 (identical code); billing.go
and static_commands.go were upstream supersets adding the JSON/security
CLI surface with no fork-unique code lost. Fixed a duplicate tencent
import in cmd/ask.go left by the auto-merge.

Verified in Docker (golang:1.25, -mod=mod): gofmt clean, go build ./...,
go vet ./..., and go test ./... all pass.
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