Skip to content

fix: stop ignoring content slugs containing cache - #27

Merged
TimeToBuildBob merged 1 commit into
masterfrom
fix-website-gitignore-cache-ad27
Jul 15, 2026
Merged

TimeToBuildBob merged 1 commit into
masterfrom
fix-website-gitignore-cache-ad27

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Owner

Problem

The website's root .gitignore used *cache*, so any new post or asset whose filename contained cache was invisible to normal git status and git add. The content sync could report a successful create while the publish artifact was silently absent from the commit.

This happened while publishing your-cache-can-be-young-and-wrong: the generated _posts/...cache...md file existed, but git status was clean until it was force-added.

Fix

Replace the substring-wide rule with cache-specific directory patterns. Existing build/dependency caches remain ignored, while content slugs containing cache stay trackable.

The brain-side sync now independently fails closed on ignored destinations (ErikBjare/bob@9d78a914c7) so future website ignore regressions are surfaced before the script writes an invisible artifact.

Verification

  • .cache/, .*cache*/, *.cache/, *.cache-*, __pycache__/, vendor/, .bundle/, node_modules/, and generated CSS remain ignored.
  • _posts/2026-07-15-your-cache-can-be-young-and-wrong.md is not ignored.
  • Website pre-commit checks pass.

@TimeToBuildBob
TimeToBuildBob merged commit 4ab3919 into master Jul 15, 2026
1 check passed
@TimeToBuildBob
TimeToBuildBob deleted the fix-website-gitignore-cache-ad27 branch July 15, 2026 02:40
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