Codex Fix a Go Build Failure Caused by an Interface Mismatch
Trace compiler diagnostics to a narrow correction and verify with build, static checks, and tests.
中文Install in Codex
Use a local Go module, the Go toolchain, and a reproducible build error.
- Copy the pinned `skills/go-build-fix/` directory into `.agents/skills/go-build-fix/` in the project.
- Give Codex the first failing command and output, the affected package, and the edit scope.
Example task
In a fixture, define `Labeler` with `Label() string`, then give a struct a method returning `int`. Run `go build ./...` and align the interface with a minimal change.What to check
Build and tests pass, the diff covers only the mismatch and required call sites, and the report explains the compiler finding.
Original SKILL.md on GitHub · Updated
Frequently asked question
What if the build prints multiple errors?
Fix the earliest well-supported type or import error, then rerun to see which downstream diagnostics remain.