Skip to content

vp -C <dir> check and vp -C <dir> lint in cached tasks ignore their tracked environment variables #3503

Open

Description

@jong-kyung

In a cached task, a leading -C makes vp check and vp lint ignore the environment variables their cache config tracks. Changing a variable still replays the cache, and OXLINT_TSGOLINT_PATH never reaches the command. Without -C, both commands handle these variables correctly.

The leading -C branch in packages/cli/binding/src/cli/handler.rs returns HandledCommand::Verbatim, so the command skips its subcommand cache config:

  • vp check loses OXLINT_TSGOLINT_PATH and VP_SKIP_STATIC_CONFIG.
  • vp lint loses OXLINT_TSGOLINT_PATH.

Other subcommands lose their cache settings the same way, such as input exclusions and the disabled cache for vp dev.

Repro with run: { cache: true }:

  • check: after vp run quality with "quality": "vp -C . check index.js" fills the cache, VP_SKIP_STATIC_CONFIG=1 vp run quality replays it, while VP_SKIP_STATIC_CONFIG=1 vp -C . check index.js reports a lint error. Reported in perf(cli): read vp check config statically when possible #3487.
  • lint: after vp run lint:dir with "lint:dir": "vp -C . lint --type-aware" fills the cache, OXLINT_TSGOLINT_PATH=./invalid-path vp run lint:dir replays it. After a cache miss, the same command still passes, while vp lint fails with Failed to find tsgolint executable.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. added theissue type on Nov 20, 2026
  3. voidzero-bot commented on Nov 20, 2026

    @voidzero-bot
    Contributor

    Triage failed unexpectedly (attempt 1 of 3).

    Run: https://github.com/voidzero-dev/vite-plus/actions/runs/44684256733

    I can retry if a new comment provides more information or asks me to try again.

    Error:

    [flue] skill("triage") failed: 410 status code (no body)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions