Skip to content

fix: repair pre-commit on main (dead stargazers link, unpinned prettier)#6074

Merged
max-sixty merged 2 commits into
PRQL:mainfrom
max-sixty:fix-pre-commit
Jul 11, 2026
Merged

fix: repair pre-commit on main (dead stargazers link, unpinned prettier)#6074
max-sixty merged 2 commits into
PRQL:mainfrom
max-sixty:fix-pre-commit

Conversation

@max-sixty

Copy link
Copy Markdown
Member

pre-commit run --all-files fails on a clean checkout of main, for two unrelated external reasons:

  1. lychee 404 on the README stars badge. GitHub restricted stargazer data in June 2026: /stargazers pages now return 404 for everyone but a repo's own admins/collaborators. The badge link is dead for the public, so this points it at the repo root instead of excluding it from the checker.

  2. prettier was never actually pinned. The mirror pins prettier via additional_dependencies: ["prettier@<rev>"] in its hook definition, but a consumer-level additional_dependencies replaces that list — so our unpinned prettier entry meant every hook-env rebuild installed npm's latest. The July 6 autoupdate (chore: pre-commit autoupdate #6061) triggered a rebuild that picked up the just-released prettier 3.9.5, which rewrites empty markdown link destinations [x]()[x](<>) (and 3.9.4 rewrites them back), making differently-built environments fight over web/book/src/SUMMARY.md's mdbook draft-chapter links.

    The fix drops our additional_dependencies block entirely so the mirror's own pin applies and the version tracks the rev (autoupdate then keeps them moving together), bumps to v3.9.5, and accepts its reformat of the two draft links — mdbook renders [x](<>) draft chapters identically to [x]() (verified by building the book). The dropped prettier-plugin-go-template was never active: its .prettierrc.yaml activation has always been commented out (Prettier doesn't seem to work with the go-template plugin any longer #3078); anyone picking that issue up should re-add it with an explicit prettier@x.y.z pin alongside.

Verified: pre-commit run --all-files passes twice from a clean tree, and mdbook build web/book succeeds.

This was written by Claude Code on behalf of max

max-sixty and others added 2 commits July 10, 2026 16:28
…er version)

- GitHub restricted stargazer lists (June 2026): /stargazers now 404s
  for non-collaborators, failing lychee. Point the README stars badge
  at the repo root instead.
- The unpinned `prettier` in additional_dependencies overrode the
  mirror's pinned version with npm latest, so envs built after the
  prettier 3.9.5 release rewrite mdbook draft links `[x]()` to
  `[x](<>)` while 3.9.4 envs rewrite them back. Drop it so the
  version always matches the pinned rev.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Consumer-level additional_dependencies replace the mirror's own
`prettier@<rev>` pin, so listing the (never-activated, PRQL#3078)
go-template plugin left prettier unpinned since 2023 — each env
rebuild installed npm latest. Drop the block so the mirror's pin
applies and the version tracks the rev; accept 3.9.5's rewrite of
mdbook draft links to `[x](<>)`, which mdbook renders identically.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@max-sixty max-sixty merged commit 81e2d23 into PRQL:main Jul 11, 2026
39 checks passed
@max-sixty max-sixty deleted the fix-pre-commit branch July 11, 2026 04:16
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.

2 participants