Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Task command delegating to `vp run <script>` silently loses task-level caching

Aperta
#2,238 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@wan9chi ci sta già lavorando.

Dal 25/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
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 -v says "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-alias executed both runs
  • outer-direct got "cache hit, 50ms saved" on the second)
System Info
vp version 0.2.2
Used Package Manager

pnpm

Logs
-
Validations
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-plus

Tutte le issue di voidzero-dev/vite-plus

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.