You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b79536f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cache): validate remote cache URLs upfront and document env vars in CLI help
Fail fast on malformed remote cache endpoint URLs and surface remote cache environment variables in `vp run --help`:
- Validate `cache.remote.url` in `vt_graph` and `VP_REMOTE_CACHE_URL` in `vt_plan` (requiring `http://` or `https://` with a host, without leaking URL credentials in errors; skipped when mode is `off`)
- Add unit tests confirming unknown keys in `cache` and `cache.remote` are rejected
- Document `VP_REMOTE_CACHE`, `VP_REMOTE_CACHE_URL`, and `VP_REMOTE_CACHE_HEADER_<NAME>` in `RunFlags::remote_cache` and `RunCommand` long help
- Update plan/e2e snapshots and `CHANGELOG.md`
Co-authored-by: Gemini 4 Neon <noreply@google.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# Changelog
2
2
3
+
-**Changed** Invalid remote cache endpoint URLs in `cache.remote.url` or `VP_REMOTE_CACHE_URL` (such as missing schemes, non-`http`/`https` schemes, or missing hosts) now fail upfront during configuration and planning instead of warning per task during execution, and `vp run --help` now documents `VP_REMOTE_CACHE`, `VP_REMOTE_CACHE_URL`, and `VP_REMOTE_CACHE_HEADER_<NAME>` ([#???](https://github.com/voidzero-dev/vite-task/pull/???)).
3
4
-**Changed** Removed `NEXT_*`, `VERCEL`, `VERCEL_*`, `USE_OUTPUT_FOR_EDGE_FUNCTIONS`, `NOW_BUILDER`, `VC_MICROFRONTENDS_CONFIG_FILE_NAME`, `GITHUB_*`, `ACTIONS_ID_TOKEN_REQUEST_URL`, `DOCKER_*`, `BUILDKIT_*`, `COMPOSE_*`, and `*_TOKEN` from the default untracked environment variables passed to cached tasks. Tasks that need any of these variables should declare them explicitly in `cache.env` or `cache.untrackedEnv` ([#1044](https://github.com/voidzero-dev/vite-task/pull/1044)).
4
5
-**Changed**`VP_*` environment variables (including `VP_REMOTE_CACHE*` and `VP_RUN_*`) are no longer passed through to cached tasks by default; embedders can opt specific variables into default untracked passthrough via `SessionConfig::extra_untracked_env` ([#1043](https://github.com/voidzero-dev/vite-task/pull/1043)).
5
6
-**Added** Remote cache requests now support custom HTTP headers via `cache.remote.headers` in the workspace root's `vite.config.*` (`cache.remote.url` is now optional when `VP_REMOTE_CACHE_URL` is set) and `VP_REMOTE_CACHE_HEADER_<NAME>` environment variables (`_` maps to `-` and overrides matching configured headers). Non-`Authorization` headers compose with GitHub Actions OIDC on stores and are never sent on OIDC token requests, while setting `Authorization` in `cache.remote.headers` or `VP_REMOTE_CACHE_HEADER_AUTHORIZATION` turns off automatic GitHub OIDC ([#1037](https://github.com/voidzero-dev/vite-task/pull/1037), [#1038](https://github.com/voidzero-dev/vite-task/pull/1038), [#1039](https://github.com/voidzero-dev/vite-task/pull/1039), [#1040](https://github.com/voidzero-dev/vite-task/pull/1040)).
0 commit comments