tooling: verify generated CLI manpage drift #362

Closed
opened 2026-05-11 21:02:06 +00:00 by barrettruth · 0 comments
Owner

Parent: #355

Problem

cli/man/delta.1 is generated from cli/man/delta.1.md, but the version check only verifies the generated manpage version line. Body drift could pass CI.

Solution

Make version:check detect generated manpage drift:

  • render the manpage to a temporary file during the check
  • compare it with the tracked generated manpage
  • keep the existing version-sync checks intact

Acceptance criteria

  • A stale generated cli/man/delta.1 fails pnpm version:check.
  • Current tracked manpage passes after regeneration.
  • Tests cover the drift-check helper where practical.
Parent: #355 ## Problem `cli/man/delta.1` is generated from `cli/man/delta.1.md`, but the version check only verifies the generated manpage version line. Body drift could pass CI. ## Solution Make `version:check` detect generated manpage drift: - render the manpage to a temporary file during the check - compare it with the tracked generated manpage - keep the existing version-sync checks intact ## Acceptance criteria - A stale generated `cli/man/delta.1` fails `pnpm version:check`. - Current tracked manpage passes after regeneration. - Tests cover the drift-check helper where practical.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta#362
No description provided.