Skip to content

fix(build,docgen): bootstrap star for codegen rules; fix docs template fields - #290

Merged
David-Noble-at-work merged 1 commit into
developfrom
ci/make-bootstrap-and-docgen
Jul 25, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
ci/make-bootstrap-and-docgen

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Two stacked defects broke CI on develop and docs-publish. (1) The Makefile's 31 codegen rules invoke $(STAR) but nothing built it, so fresh checkouts failed with "build/star: No such file or directory" whenever checkout mtimes made a gen file look stale -- a mtime lottery, which is why PR runs passed while develop runs failed. A build/star bootstrap rule plus an order-only | $(STAR) prerequisite on each codegen rule fixes it under both serial and parallel make, with no effect for LKG users. (2) docgen's page template referenced .ReceiverName where the structs declare Name, so make docs failed even once star existed. Both reproduced and verified green on a pristine develop tarball (cold tree, hostile mtimes).

…e fields

Makefile: every codegen recipe invokes $(STAR), but nothing built it, so a
fresh CI checkout died with "build/star: No such file or directory" whenever
checkout mtimes made a gen file look stale -- the quality-gate Build failure
on develop and the first of two docs-publish failures. Add a build/star
bootstrap rule ($(MAKE) star; star builds from the committed gen files) and
give all 31 codegen rules an order-only prerequisite on $(STAR). Order-only
preserves regenerate-only-when-stale semantics, is correct under parallel
make, and is a no-op for LKG users ($(STAR) already resolved to the LKG).

docgen: the page template referenced {{ .ReceiverName }} while FlagInfo,
ParentInfo, and ChildInfo all declare Name, so every docs run failed with
"can't evaluate field ReceiverName" -- a rename swept the template text.
Restore .Name in the four references.

Verified on a pristine develop tarball: reproduced both failures, then
make build and make docs exit 0 from a cold tree with hostile mtimes; the
generated flag tables render correctly.
@David-Noble-at-work
David-Noble-at-work merged commit 259057b into develop Jul 25, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the ci/make-bootstrap-and-docgen branch August 11, 2026 18:43
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