GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add VP_* to DEFAULT_UNTRACKED_ENV by jong-kyung · Pull Request #297 · voidzero-dev/vite-task

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add VP_* pattern to DEFAULT_UNTRACKED_ENV so that Vite+ internal environment variables (e.g. VP_HOME, VP_VERSION) are passed through to child processes without affecting cache keys.

Context

This is a prerequisite for voidzero-dev/vite-plus#1074, which renames all VITE_PLUS_* env vars to VP_* to avoid leaking internal vars through Vite's envPrefix (default VITE_).

After the rename, VP_* vars no longer match the VITE_* fingerprinted env pattern set by vp build. Without this change, VP_VERSION (and other internal state vars) would be filtered out by EnvFingerprints::resolve() and not reach child processes.

VP_* belongs in untracked_env (not fingerprinted_envs) because these are internal runtime state variables that should not affect cache keys.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kyu-rong reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@jong-kyung
feat: add VP_* to DEFAULT_UNTRACKED_ENV
cc66d1a
@jong-kyung
jong-kyung force-pushed the refactor/add-vp-to-default-untracked-env branch from 558de2f to cc66d1a Compare March 26, 2026 11:21
@fengmk2
fengmk2 requested a review from wan9chi March 26, 2026 12:21
wan9chi
wan9chi approved these changes Mar 26, 2026
View reviewed changes
fengmk2
fengmk2 approved these changes Mar 26, 2026
View reviewed changes
@fengmk2
fengmk2 merged commit 26c1892 into voidzero-dev:main Mar 26, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Mar 26, 2026
chore(deps): bump vite-task rev and adapt spawn API voidzero-dev/vite-plus#1155
Merged
Avoid exposing internal Vite+ env vars via Vite env prefix voidzero-dev/vite-plus#1074
Closed
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Mar 27, 2026
@jong-kyung @fengmk2
chore(deps): bump vite-task rev and adapt spawn API (#1155)
9f7167f
## Summary

- Bump vite-task git dependency from `2663222` to `26c1892` (includes
[voidzero-dev/vite-task#297](voidzero-dev/vite-task#297))
- Add `tokio-util` dependency and pass `CancellationToken` to
`fspy::Command::spawn()` to adapt to the updated API

Co-authored-by: MK (fengmk2) <[email protected]>
@jong-kyung jong-kyung mentioned this pull request Mar 27, 2026
refactor(env)!: rename VITE_PLUS_* env vars to VP_* prefix voidzero-dev/vite-plus#1166
Merged
fengmk2 pushed a commit to voidzero-dev/vite-plus that referenced this pull request Mar 29, 2026
@jong-kyung
refactor(env)!: rename VITE_PLUS_* env vars to VP_* prefix (#1166)
97c7571
## Summary

Closes #1074

Rename all internal `VITE_PLUS_*` environment variables to `VP_*` prefix
to avoid Vite's default `envPrefix: "VITE_"` from exposing them in
bundled applications via `import.meta.env`.

- Rename 25 env vars across Rust, TypeScript, shell scripts, CI
workflows, and snap tests
- Rename Rust constant identifiers and `get_vite_plus_home()` →
`get_vp_home()` to match
- Update all code comments and user-facing docs (`docs/guide/env.md`)
- Env vars **not** renamed: `VITE_LOG`, `VITE_NODE_DIST_MIRROR`,
`VITE_UPDATE_TASK_TYPES`, `VITE_GLOBAL_CLI_JS_SCRIPTS_DIR` — these use
the `VITE_` prefix (not `VITE_PLUS_`) and are intentionally kept

### Prerequisite (merged)

- vite-task:
[voidzero-dev/vite-task#297](voidzero-dev/vite-task#297)
— Add `VP_*` to `DEFAULT_UNTRACKED_ENV` so internal vars pass through to
child processes without affecting cache keys
otnc pushed a commit to otnc/viteplus-ja that referenced this pull request Mar 30, 2026
@jong-kyung
refactor(env)!: rename VITE_PLUS_* env vars to VP_* prefix (#1166)
06007dc
## Summary

Closes #1074

Rename all internal `VITE_PLUS_*` environment variables to `VP_*` prefix
to avoid Vite's default `envPrefix: "VITE_"` from exposing them in
bundled applications via `import.meta.env`.

- Rename 25 env vars across Rust, TypeScript, shell scripts, CI
workflows, and snap tests
- Rename Rust constant identifiers and `get_vite_plus_home()` →
`get_vp_home()` to match
- Update all code comments and user-facing docs (`docs/guide/env.md`)
- Env vars **not** renamed: `VITE_LOG`, `VITE_NODE_DIST_MIRROR`,
`VITE_UPDATE_TASK_TYPES`, `VITE_GLOBAL_CLI_JS_SCRIPTS_DIR` — these use
the `VITE_` prefix (not `VITE_PLUS_`) and are intentionally kept

### Prerequisite (merged)

- vite-task:
[voidzero-dev/vite-task#297](voidzero-dev/vite-task#297)
— Add `VP_*` to `DEFAULT_UNTRACKED_ENV` so internal vars pass through to
child processes without affecting cache keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fengmk2 fengmk2 fengmk2 approved these changes
@wan9chi wan9chi wan9chi approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@jong-kyung @fengmk2 @wan9chi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.