Skip to content

chore: add tidy-check Makefile target#637

Closed
isaacschepp wants to merge 1 commit intomainfrom
chore/tidy-check-target
Closed

chore: add tidy-check Makefile target#637
isaacschepp wants to merge 1 commit intomainfrom
chore/tidy-check-target

Conversation

@isaacschepp
Copy link
Copy Markdown
Collaborator

Summary

Add a read-only make tidy-check target that runs go mod tidy -diff to verify go.mod and go.sum are tidy without modifying them, mirroring the validate-mod CI job.

Fixes #627

Test plan

  • Verify make tidy-check appears in make help output
  • Verify make tidy-check exits 0 on a clean repo (go.mod/go.sum are tidy)
  • Verify make tidy-check exits 1 and prints a diff when go.mod is untidy

Add a read-only `make tidy-check` target that runs `go mod tidy -diff`
to verify go.mod and go.sum are tidy without modifying them, mirroring
the validate-mod CI job in validate-spec.yml.

Fixes #627
@isaacschepp isaacschepp added the tooling Infrastructure, workflow, and developer tools label Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 21:59
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying genealogix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7478e07
Status: ✅  Deploy successful!
Preview URL: https://c5558832.genealogix.pages.dev
Branch Preview URL: https://chore-tidy-check-target.genealogix.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a read-only make tidy-check target so contributors can locally verify go.mod/go.sum are tidy using go mod tidy -diff, matching the existing validate-mod CI job.

Changes:

  • Add tidy-check Makefile target that runs go mod tidy -diff (read-only verification).
  • Register tidy-check in .PHONY so it always runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@isaacschepp isaacschepp requested a review from noahbjohnson April 2, 2026 22:26
isaacschepp added a commit that referenced this pull request Apr 2, 2026
Add a `make check` target that runs all locally-reproducible CI checks
in a single command: tidy-check, lint, test, check-schemas, check-links,
and validate-examples.

Also adds the prerequisite targets `tidy-check` (go mod tidy -diff) and
`validate-examples` (build CLI + validate all example archives) that
were previously in separate PRs (#637, #636).

Fixes #445
Closes #626
Closes #627
@isaacschepp
Copy link
Copy Markdown
Collaborator Author

Superseded by #641 which includes tidy-check as part of the make check target.

@isaacschepp isaacschepp closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling Infrastructure, workflow, and developer tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Makefile: add tidy-check target for go mod tidy -diff

2 participants