Skip to content

fix: repair go.mod/go.sum so local builds work (COR-13588) - #7

Open
Bradenream wants to merge 1 commit into
masterfrom
braden/fix-local-build-gosum/COR-0
Open

fix: repair go.mod/go.sum so local builds work (COR-13588)#7
Bradenream wants to merge 1 commit into
masterfrom
braden/fix-local-build-gosum/COR-0

Conversation

@Bradenream

@Bradenream Bradenream commented Aug 26, 2026

Copy link
Copy Markdown

Part of COR-13588 — shipping the vf CLI as an agent-era distribution channel.

Problem

go build fails from a clean checkout: the generated go.mod carries a phantom require (spyzhov/ajson — imported nowhere) and omits the transitive requires Go needs, so every local build dies with missing go.sum entry. CI never noticed because goreleaser runs go mod tidy in a before-hook.

Fix

Commit exactly the module state CI already builds with (go mod tidy output): phantom require dropped, transitive requires filled in, mixed indentation normalized.

go.mod is generation-tracked; persistent edits are enabled and CI's own tidy makes any drift harmless.

Verification

  • go build ./... from clean checkout: passes (fails on master)
  • go vet ./internal/...: clean

The generated go.mod listed a phantom require (spyzhov/ajson, imported
nowhere) and omitted the transitive requires Go needs, so every local
'go build' failed with 'missing go.sum entry'. CI never noticed because
goreleaser runs 'go mod tidy' in a before hook — this commit checks in
exactly the module state CI already builds with.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the repository’s Go module requirements with the dependency graph produced by go mod tidy, so clean-checkout local builds don’t fail due to missing/incorrect module requirements.

Changes:

  • Removes an unused direct require entry (github.com/spyzhov/ajson) that is not imported anywhere in the codebase.
  • Adds missing direct and indirect require entries (including github.com/spf13/pflag and github.com/stretchr/testify) to match actual imports and test dependencies.
  • Normalizes go.mod formatting/indentation consistent with standard go mod tidy output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Bradenream Bradenream changed the title fix: repair go.mod/go.sum so local builds work fix: repair go.mod/go.sum so local builds work (COR-13588) Aug 26, 2026
@linear-code

linear-code Bot commented Aug 26, 2026

Copy link
Copy Markdown

COR-13588

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.

3 participants