Skip to content

fix!: update vp run argument order for flags-before-task breaking change#1170

Merged
fengmk2 merged 1 commit intomainfrom
vite-task-argument-breaking
Mar 27, 2026
Merged

fix!: update vp run argument order for flags-before-task breaking change#1170
fengmk2 merged 1 commit intomainfrom
vite-task-argument-breaking

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 27, 2026

vite-task PR voidzero-dev/vite-task#286 and
voidzero-dev/vite-task#290 changed trailing_var_arg
to the command level, meaning flags like -r must now appear before the
task name. Tokens after the task name are passed through verbatim to the
task process.

  • vp run -r test (correct) — -r is the recursive flag
  • vp run test -r (broken) — -r is passed through to the task

Add snap test command-run-argument-order verifying both behaviors.
Update monorepo template, docs, and RFCs to use the new syntax.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit e812aa6
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c66ab53ad2c30008b6daa3

@fengmk2 fengmk2 self-assigned this Mar 27, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 27, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 requested review from branchseer and cpojer March 27, 2026 11:30
@fengmk2 fengmk2 marked this pull request as ready for review March 27, 2026 11:30
…hange

vite-task PR voidzero-dev/vite-task#286 and
voidzero-dev/vite-task#290 changed trailing_var_arg
to the command level, meaning flags like `-r` must now appear before the
task name. Tokens after the task name are passed through verbatim to the
task process.

- `vp run -r test` (correct) — `-r` is the recursive flag
- `vp run test -r` (broken) — `-r` is passed through to the task

Add snap test `command-run-argument-order` verifying both behaviors.
Update monorepo template, docs, and RFCs to use the new syntax.
@fengmk2 fengmk2 force-pushed the vite-task-argument-breaking branch from d6f0c70 to e812aa6 Compare March 27, 2026 11:32
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 27, 2026

rfcs/run-without-vite-plus-dependency.md this fallback feature will be removed in next pr.

@fengmk2
Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 27, 2026

@cpojer Just a heads up, the next version has an incompatible update to parameters. I think this update is very necessary to avoid confusion with the actual task command parameters.

@fengmk2 fengmk2 merged commit 2e59346 into main Mar 27, 2026
24 checks passed
@fengmk2 fengmk2 deleted the vite-task-argument-breaking branch March 27, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants