A cache hit drops the symbolic links in a task's outputs
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- build-system
Línea de trabajo
Start with create_output_archive in crates/vt/src/session/cache/archive.rs and walk_glob_files in crates/vt/src/session/execute/glob.rs; the issue describes how both handle symbolic links. Reproduce with the provided task, then check the cache archive and glob behavior for links. Done when a cache hit restores links matched by an output glob; automatic tracking of created links is explicitly left open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Written by an AI agent (Claude) on behalf of @jasonkuhrt.
A cache hit leaves out the symbolic links a task created in its outputs, so the replayed output differs from the one the task produced.
We hit it with Nitro's server build: its dependency tracer (nf3) writes server/node_modules/tslib -> .nf3/[email protected]. After a hit, the link is gone, and the replayed server resolves tslib outside its own output, or not at all.
Repro. A package with this script and task:
// make-link.mjs
import fs from 'node:fs';
fs.mkdirSync('dist/.store/pkg', { recursive: true });
fs.writeFileSync('dist/.store/pkg/index.js', 'export default 42;');
fs.symlinkSync('.store/pkg', 'dist/pkg');
// vite.config.ts
export default defineConfig({
run: {
tasks: {
build: {
command: 'node make-link.mjs',
cache: { output: [{ auto: true }, 'dist/**'] },
},
},
},
});
vp run build, rm -rf dist, vp run build again: the second run is a cache hit, dist/.store/pkg/index.js is back, and dist/pkg is missing.
Causes (at 0346c268):
create_output_archivereads each output withstd::fs::metadata, which follows links, and archives regular files only: a directory link is skipped, and a file link would be stored as a copy of its target.walk_glob_fileskeeps onlyis_file()entries, so anoutputglob never lists a link.- Automatic output tracking never sees a link being created: fspy has no interceptor for
symlink/symlinkat(preload interceptions, and the Linux syscall handler), norCreateSymbolicLinkWon Windows. So even with 1 and 2 fixed,{ auto: true }alone can't list a created link; it takes anoutputglob that matches it.
A fix for 1 and 2 follows in a PR. 3 is left open here.
- Lenguaje dominante
- Rust
- Estrellas
- 480
- Forks
- 50
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 62
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de voidzero-dev/vite-task
-
A task output archive larger than the remote cache server's request limit can never be storedAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
voidzero-dev/vite-task#888 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
voidzero-dev/vite-task#886 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
voidzero-dev/vite-task#881 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
voidzero-dev/vite-task#879 ·
Los mantenedores suelen responder en 1 día
-
vp run hangs after a failure when a cancelled task's detached descendant holds its IPC connectionAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
voidzero-dev/vite-task#878 ·
Los mantenedores suelen responder en 1 día
Todos los issues de voidzero-dev/vite-task
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
manuscript-lang/manuscript#1364 ·
Los mantenedores suelen responder en 1 día
-
`printf "%o"` prints decimalAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
fable-compiler/Fable#5157 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
C-bug needs-triage O-UEFI T-libs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
移动端宽屏适配Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día