Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- **Fixed** Unreadable local task-cache rows are now ignored, discarded when possible, and treated as cache misses instead of preventing tasks from running ([#555](https://github.com/voidzero-dev/vite-task/pull/555)).
- **Fixed** The task cache now supports much larger automatically tracked input sets without hitting wincode's default 4 MiB sequence preallocation limit ([#554](https://github.com/voidzero-dev/vite-task/pull/554)).
- **Fixed** npm workspace patterns beginning with `./` now discover matching packages correctly ([vite-plus#2201](https://github.com/voidzero-dev/vite-plus/issues/2201), [#547](https://github.com/voidzero-dev/vite-task/pull/547)).
- **Fixed** Failures while forwarding output from a started task process no longer incorrectly say the process failed to spawn ([#506](https://github.com/voidzero-dev/vite-task/issues/506)).
Expand Down
4 changes: 4 additions & 0 deletions crates/vite_task/src/session/cache/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ fn format_env_changed_inline(names: &[&Str]) -> Str {
/// Returns `Some(formatted_string)` for Hit, Miss with reason, and Disabled, None for `NotFound`.
/// - Cache Hit: Shows "cache hit" indicator
/// - Cache Miss (NotFound): No inline message (just command)
/// - Cache Miss (Unreadable): Shows that the local row was ignored
/// - Cache Miss (with mismatch): Shows "cache miss" with brief reason
/// - Cache Disabled: Shows "cache disabled" with reason
///
Expand All @@ -158,6 +159,9 @@ pub fn format_cache_status_inline(cache_status: &CacheStatus) -> Option<Str> {
// This keeps the output clean for first-time executions
None
}
CacheStatus::Miss(CacheMiss::Unreadable) => {
Some(Str::from("○ cache miss: unreadable local cache entry ignored, executing"))
}
CacheStatus::Miss(CacheMiss::FingerprintMismatch(mismatch)) => {
// Show "cache miss" with reason why cache couldn't be used
let reason = match mismatch {
Expand Down
Loading
Loading