Task command delegating to `vp run <script>` silently loses task-level caching
@wan9chi ci sta già lavorando.
Dal 25/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
A vite.config.ts task whose command is vp run <package.json script> behaves as a pass-through alias:
- It drops the "cached-by-default" behavior
vp run -vsays "Cache disabled in task configuration" (the script's uncached default wins)
=> The task executes on every run.
The identical underlying command inlined in the task, or dispatched via pnpm --filter in a workspace, caches normally.
Expected:
- Either the config task caches its command like any other (preferred)
- Or the aliasing is documented and warned about
Reproduction
see text
Steps to reproduce
package.json
{
"name": "repro-package-json",
"private": true,
"scripts": {
"gen": "node -e \"console.log('generated')\""
}
}
vite.config.ts
export default {
run: {
tasks: {
"outer-alias": { command: "vp run gen" }, // never caches
"outer-direct": { command: "node -e \"console.log('generated')\"" }, // caches
},
},
};
When running:
outer-aliasexecuted both runsouter-directgot "cache hit, 50ms saved" on the second)
System Info
vp version 0.2.2
Used Package Manager
pnpm
Logs
-
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- Lingua principale
- Rust
- Stelle
- 5.8k
- Fork
- 263
- Merge medio
- 1g 3h
- PR unite (30g)
- 147
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di voidzero-dev/vite-plus
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voidzero-dev/vite-plus#2804 · 1 reazione ·
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voidzero-dev/vite-plus#2801 · 1 reazione ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
-
documentation
voidzero-dev/vite-plus#2800 · 1 assegnatario ·
-
pending triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
voidzero-dev/vite-plus#2796 · 1 commento ·
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
todo:ticket
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
taikoxyz/taiko-mono#22168 · 1 commento ·