Repository navigation
Build cache automatically on first run when custom sources exist - #4038
Merged
keith-hall merged 3 commits intoNov 2, 2026
Merged
Conversation
Custom themes and syntaxes dropped into the config directory were silently ignored until 'bat cache --build' was run manually. Now bat builds the cache on first run when sources are present but no cache exists yet. A failed build only warns and falls back to the integrated assets; --no-custom-assets opts out. Fixes #4017
keith-hall
approved these changes
Nov 2, 2026
cindykrafft
pushed a commit
to cindykrafft/bat
that referenced
this pull request
Nov 2, 2026
Brings in sharkdp#4038, sharkdp#4048 and sharkdp#4070. The merge of sharkdp#4048 re-added the old UTF-16BE CHANGELOG entry with its "#XXXX" placeholder at the top of Bugfixes, so drop that duplicate; the entry this PR corrects to sharkdp#4076 stays. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VVn4SeAXPsUajXT2rtHQfo
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom themes or syntaxes added to the config directory are silently ignored until
bat cache --buildis run manually, which is confusing on a fresh setup (e.g. after installing dotfiles on a new machine).Changes:
themes/orsyntaxes/in the config directory contain files but no cache exists yet, the cache is built automatically on first run, with a short notice on stderr.--no-custom-assetsopts out of the automatic build.Tests:
cache_auto_build_on_first_runandcache_no_auto_build_with_no_custom_assetsintegration tests.cargo fmt --check,cargo clippy --all-targets --all-features(warnings denied), and the `cache_*!/theme/language integration tests pass. Also verified manually that a custom theme becomes usable right after the first run.Fixes #4017.