Document cross-platform `FOO=bar cmd` in task commands and scripts
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Documentation is
- Missing
Explain in Detail
vp run parses simple commands and && chains itself, including env prefixes like FOO=bar tool --flag. The prefix is applied to the spawned process, so per the source this works on Windows too, without cross-env. (Verified on Linux; Windows read from the code, not tested.)
Other commands (pipes, redirects, $VAR, etc.) fall back to /bin/sh -c, or cmd.exe /d /s /c on Windows, where FOO=bar tool fails.
Neither is documented. command only says "The string is interpreted by a shell", which suggests cmd.exe on Windows.
Source (vite-task 9ba4cc9):
vt_shell: parsesFOO=BAR program argsvt_planplan.rs: applies prefix envs per&&itemplan.rs: shell fallback
Is this a supported feature? If so, it'd be a good reason to drop cross-env.
Your Suggestion for Changes
In Compound Commands or command, document:
- Which commands are parsed by Vite Task, and which fall back to the system shell (and which shell on Windows).
FOO=bar toolworks on every OS when parsed, and applies only to that command (FOO=1 a && bdoesn't setFOOforb).
Relevant Page
https://github.com/voidzero-dev/vite-plus/blob/main/docs/config/run.md#command
- Lenguaje dominante
- Rust
- Estrellas
- 6.3k
- Forks
- 283
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 231
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-plus
-
pending triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
voidzero-dev/vite-plus#2882 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
voidzero-dev/vite-plus#2097 · 10 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
`pnpm create vite-plus` and `yarn create vite-plus` fail with `spawn vp ENOENT` when `vp` is not on PATHPosiblemente ocupada @fengmk2 la tomó hoy. Abiertobug
voidzero-dev/vite-plus#3177 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8Posiblemente ocupada @john-okeefe la tomó hoy. Abiertocontribution welcome
voidzero-dev/vite-plus#3176 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
`vp run`: scripts get a non-blocking stdin (EAGAIN) when `run` tasks in vite.config.ts use constantsAbiertopending triage
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
voidzero-dev/vite-plus#3155 ·
Los mantenedores suelen responder en 1 día
Todos los issues de voidzero-dev/vite-plus
Issues similares
-
area: config effort: S good first issue P3 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
ferenyl/azuredevopstui#63 ·
-
needs-triage O-Arm T-libs
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
bug CLI config mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
yunaremaia/sandbox-ffi-layers#56 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
git-ai-project/git-ai#2434 ·
Los mantenedores suelen responder en 1 día