Skip to content

Add missing .lycheecache entries for links merged without cache updates - #186

Merged
chalin merged 3 commits into
theupdateframework:mainfrom
chalin:chalin-m24-lycheecache-refresh-2026-0817
Aug 17, 2026
Merged

Add missing .lycheecache entries for links merged without cache updates#186
chalin merged 3 commits into
theupdateframework:mainfrom
chalin:chalin-m24-lycheecache-refresh-2026-0817

Conversation

@chalin

@chalin chalin commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The git diff --exit-code .lycheecache guard in the Links workflow has failed on every main run since it landed, while the link check itself passes: 08-04 (on #161's own merge commit), 08-08, 08-13.

Cause: three URLs are checked but missing from the committed .lycheecache:

Fix:

  • Regenerated the cache via npm run check:links and committed the normalized result (3 added entries, nothing else). Verified that a repeat run leaves the file unchanged, so the guard goes green.
  • Wired the same guard into npm test (_diff:check:link-cache), so cache drift is visible locally before pushing instead of CI-only. It stays out of check:links itself so Netlify's warn-only postbuild path keeps deploys unblocked.

Beyond this PR:

PRs theupdateframework#130 and theupdateframework#175 added or changed external links without updating the
committed .lycheecache, so the cache-coverage guard on main
(git diff --exit-code .lycheecache) has been failing since. Regenerated
and normalized the cache; warm-run byte-stable.
@chalin chalin closed this Aug 17, 2026
@chalin chalin reopened this Aug 17, 2026
chalin added 2 commits August 17, 2026 16:01
Local runs of npm test previously passed even when check:links had
regenerated a .lycheecache that differed from the committed one; only
CI's post-run git diff step caught it. Chain the same guard into test
via _diff:check:link-cache so the drift is visible pre-push.

The check stays out of check:links itself so Netlify's warn-only
postbuild path keeps deploys unblocked.
Match the check:format help idiom. From PR review feedback.
@chalin

chalin commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

@JustinCappos, TLDR:

  • Refreshes the link cache
  • Ensures that, moving forward, PRs won't get merged w/o updating it (when needed)

The Links check is now required, so it must be green, and the branch current with main, before anyone can merge. Merging.

@chalin
chalin merged commit 88d5821 into theupdateframework:main Aug 17, 2026
7 checks passed
@chalin
chalin deleted the chalin-m24-lycheecache-refresh-2026-0817 branch August 17, 2026 21:12
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