fix example codegen#2354
Conversation
aae687c broke example codegen, since the "generate" directory caused the "make generate" rule not to run, since it already existed. It needs to be .PHONY. I'll refactor examples a bit later.
Greptile SummaryThis PR fixes the root cause of stale example codegen: the Confidence Score: 5/5Safe to merge — targeted fix with consistent, expected regeneration output across all examples The Makefile change is a one-liner No files require special attention
|
| Filename | Overview |
|---|---|
| examples/Makefile | Core fix: adds .PHONY: generate so the generate target always runs regardless of the generate/ directory's existence |
| examples/go.mod | Updates oapi-codegen version requirement to v2.6.0 (functionally replaced by ../ via replace) and adds Go 1.24 tool directive for reproducible code generation |
| examples/minimal-server/echo/api/ping.gen.go | Representative regenerated file: version string updated to v2.6.0, gains RegisterHandlersOptions/RegisterHandlersWithOptions and per-operation middleware support |
| examples/client/client.gen.go | Regenerated: version bump, HTTP method string literals replaced with constants, ContentType() helper method added to response types |
| examples/petstore-expanded/echo/api/petstore-server.gen.go | Regenerated petstore server: version bump only, consistent with other regenerated files |
Reviews (1): Last reviewed commit: "fix example codegen" | Re-trigger Greptile
|
Oops 😅 dang makefiles! |
aae687c broke example codegen, since the "generate" directory caused the "make generate" rule not to run, since it already existed. It needs to be .PHONY. I'll refactor examples a bit later.