Repository navigation
fix(cli): keep subcommand cache config for vp -C in task scripts - #3537
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40417532c0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e228161b2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f69bc7a2ff
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
55956c9 to
080825f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55956c910c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…d task handler Each synthesizable subcommand's cache config lived inline in `SubcommandResolver::resolve`, and the task handler built the check config separately. `cache_config_for` now returns the config for any subcommand, so the resolver and the handler use one source and cannot drift apart.
A task command that starts with `vp -C <dir>` ran verbatim, so the subcommand lost its cache config. For example, `vp -C . check` did not track `OXLINT_TSGOLINT_PATH` or `VP_SKIP_STATIC_CONFIG`, which means changing either variable replayed the cache. The command still runs in a child `vp`, which applies the directory, Node runtime, and toolchain like a direct invocation. When the rest is a built-in subcommand, the handler now attaches that subcommand's cache config. Fixes voidzero-dev#3503
080825f to
9a2310d
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
A `vp -C <dir>` task command keeps the task's package as the plan's package, so the subcommand's package-relative globs resolved against that package instead of the target. For `vp -C packages/app pack` in a root task, pack's `!dist/**` excluded the root `dist` from the cache inputs, so a change to a root `dist` file that the package bundles replayed a stale build. The handler now rewrites those globs as workspace-relative globs under the target directory. A target outside the workspace cannot be expressed this way, so its package-relative globs are dropped, which matches the verbatim command that had no exclusions.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 204eba4bf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Rebasing a package-relative glob onto the `vp -C` target put the directory name into the pattern as glob syntax. For `vp -C 'packages/[ab]' pack`, the exclusion matched the sibling `packages/a` and `packages/b` output directories, and for `vp -C 'packages/(app)' pack` the pattern failed to parse, so the task failed to plan. The target path is now escaped with `wax::escape`, the glob library that Vite Task uses to read these patterns, so the target matches only itself.
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #3503.
A task command that starts with
vp -C <dir>ran verbatim, so the subcommand lost its cache config. For example,vp -C . checkdid not trackOXLINT_TSGOLINT_PATHorVP_SKIP_STATIC_CONFIG, which means changing either variable replayed the cache.Change
The command still runs in a child
vp, so the directory change, Node runtime, toolchain selection, and JS entrypoint behave exactly like a directvp -Cinvocation. When the arguments after-C <dir>form a built-in subcommand, the handler now attaches that subcommand's cache config to the child. Anything else, such asvp -C <dir> run,--version, or a barevp -C <dir>, runs verbatim as before.