Skip to content

Commit 0ec94fa

Browse files
committed
update message
1 parent c4a3709 commit 0ec94fa

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

crates/vite_task/src/session/cache/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn format_cache_status_inline(cache_status: &CacheStatus) -> Option<Str> {
173173
None => "configuration changed",
174174
}
175175
}
176-
FingerprintMismatch::ConfigChanged => "configuration changed",
176+
FingerprintMismatch::InputConfigChanged => "inputs configuration changed",
177177
FingerprintMismatch::GlobbedInputChanged { path } => {
178178
return Some(vite_str::format!(
179179
"✗ cache miss: content of input '{path}' changed, executing"

crates/vite_task/src/session/cache/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub enum FingerprintMismatch {
108108
new: SpawnFingerprint,
109109
},
110110
/// Found a previous cache entry key for the same task, but `input_config` or `glob_base` differs.
111-
ConfigChanged,
111+
InputConfigChanged,
112112
/// Found the cache entry with the same spawn fingerprint, but an explicit globbed input changed
113113
GlobbedInputChanged { path: RelativePathBuf },
114114
/// Found the cache entry with the same spawn fingerprint, but the post-run fingerprint mismatches
@@ -121,8 +121,8 @@ impl Display for FingerprintMismatch {
121121
Self::SpawnFingerprintMismatch { old, new } => {
122122
write!(f, "Spawn fingerprint changed: old={old:?}, new={new:?}")
123123
}
124-
Self::ConfigChanged => {
125-
write!(f, "configuration changed")
124+
Self::InputConfigChanged => {
125+
write!(f, "inputs configuration changed")
126126
}
127127
Self::GlobbedInputChanged { path } => {
128128
write!(f, "content of input '{path}' changed")
@@ -244,7 +244,7 @@ impl ExecutionCache {
244244
}
245245
} else {
246246
// spawn fingerprint is the same but input_config or glob_base changed
247-
FingerprintMismatch::ConfigChanged
247+
FingerprintMismatch::InputConfigChanged
248248
};
249249
return Ok(Err(CacheMiss::FingerprintMismatch(mismatch)));
250250
}

crates/vite_task/src/session/reporter/summary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl SavedCacheMissReason {
240240
FingerprintMismatch::SpawnFingerprintMismatch { old, new } => {
241241
Self::SpawnFingerprintChanged(detect_spawn_fingerprint_changes(old, new))
242242
}
243-
FingerprintMismatch::ConfigChanged => Self::ConfigChanged,
243+
FingerprintMismatch::InputConfigChanged => Self::ConfigChanged,
244244
FingerprintMismatch::GlobbedInputChanged { path } => {
245245
Self::InputContentChanged { path: Str::from(path.as_str()) }
246246
}
@@ -432,7 +432,7 @@ impl TaskResult {
432432
}
433433
}
434434
SavedCacheMissReason::ConfigChanged => {
435-
Str::from("→ Cache miss: configuration changed")
435+
Str::from("→ Cache miss: inputs configuration changed")
436436
}
437437
SavedCacheMissReason::InputContentChanged { path } => {
438438
vite_str::format!("→ Cache miss: content of input '{path}' changed")

crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inputs config changed.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ initial content
88
> json-edit vite-task.json "_.tasks.test.inputs = ['test.txt']" # change inputs config
99

1010
> vp run test # cache miss: configuration changed
11-
$ print-file test.txtcache miss: configuration changed, executing
11+
$ print-file test.txtcache miss: inputs configuration changed, executing
1212
initial content

0 commit comments

Comments
 (0)