Document cross-platform `FOO=bar cmd` in task commands and scripts
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- Rust
- スター
- 6.3k
- フォーク
- 283
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 230
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
voidzero-dev/vite-plus#2882 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
voidzero-dev/vite-plus#2097 · コメント 10 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Support external `vp-<command>` executables, as Git and Cargo do対応中かも @cpojer が 1 日前に担当しました。 オープンenhancement pending triage
voidzero-dev/vite-plus#3195 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8対応中かも @john-okeefe が 1 日前に担当しました。 オープンcontribution welcome
voidzero-dev/vite-plus#3176 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
`vp run`: scripts get a non-blocking stdin (EAGAIN) when `run` tasks in vite.config.ts use constants対応中かも @wan9chi が 1 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
voidzero-dev/vite-plus#3155 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted r-feature
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
servo/rust-smallvec#792 ·
メンテナーはふだん 1 日以内に返信
-
A-Unicode C-bug P-low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rust-lang/rustfmt#7210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
callTracer with withLog: true includes logs from a reverted top-level call (diverges from geth)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
paradigmxyz/revm-inspectors#570 ·
メンテナーはふだん 1 日以内に返信