diff --git a/CLAUDE.md b/CLAUDE.md index c6d6ffc1..37d6bb06 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -133,7 +133,7 @@ Tasks are defined in `vite-task.json`: "dependsOn": ["build", "package#task"], "cache": true, "env": ["NODE_ENV"], - "passThroughEnvs": ["CI"], + "untrackedEnv": ["CI"], "input": ["src/**", "!dist/**", { "auto": true }] } } @@ -146,7 +146,7 @@ Tasks are defined in `vite-task.json`: - `dependsOn`: explicit task dependencies (`taskName` or `package#task`) - `cache` (task): enable/disable caching for this task (default: `true`) - `env`: env var names to fingerprint and pass to the task -- `passThroughEnvs`: env var names to pass without fingerprinting +- `untrackedEnv`: env var names to pass without fingerprinting - `input`: files for cache fingerprinting (globs, `{ "auto": true }`, negation patterns) ## Task Dependencies diff --git a/crates/vite_task/docs/task-cache.md b/crates/vite_task/docs/task-cache.md index d48826ca..2453e812 100644 --- a/crates/vite_task/docs/task-cache.md +++ b/crates/vite_task/docs/task-cache.md @@ -105,7 +105,7 @@ pub struct SpawnFingerprint { pub cwd: RelativePathBuf, pub command_fingerprint: CommandFingerprint, pub fingerprinted_envs: BTreeMap, - pub pass_through_envs: BTreeSet, + pub untracked_env: BTreeSet, pub fingerprint_ignores: Option>, } @@ -124,7 +124,7 @@ This ensures cache invalidation when: - Working directory changes (package location changes) - Command or arguments change -- Declared environment variables differ (pass-through envs don't affect cache) +- Declared environment variables differ (untracked envs don't affect cache) - Program location changes (inside/outside workspace) ### 3. Environment Variable Impact on Cache @@ -132,17 +132,17 @@ This ensures cache invalidation when: The `fingerprinted_envs` field is crucial for cache correctness: - Only includes env vars explicitly declared in the task's `env` array -- Does NOT include pass-through envs (PATH, CI, etc.) +- Does NOT include untracked envs (PATH, CI, etc.) - These env vars become part of the cache key When a task runs: -1. All env vars (including pass-through) are available to the process +1. All env vars (including untracked) are available to the process 2. Only declared env vars affect the cache key 3. If a declared env var changes value, cache will miss -4. If a pass-through env changes, cache will still hit +4. If an untracked env changes, cache will still hit -The `pass_through_envs` field stores env names (not values) — if the set of pass-through env names changes, the cache invalidates, but value changes don't. +The `untracked_env` field stores env names (not values) — if the set of untracked env names changes, the cache invalidates, but value changes don't. ### 4. Execution Cache Key diff --git a/crates/vite_task/docs/wildcard-env-patterns.md b/crates/vite_task/docs/wildcard-env-patterns.md index 5acf6065..0bdeca2a 100644 --- a/crates/vite_task/docs/wildcard-env-patterns.md +++ b/crates/vite_task/docs/wildcard-env-patterns.md @@ -32,7 +32,7 @@ This approach becomes cumbersome when dealing with multiple environment variable ## Non-Goals 1. Full regex support (only glob-style wildcards) -2. Wildcard patterns in `passThroughEnvs` (same as `env`) +2. Wildcard patterns in `untrackedEnv` (same as `env`) 3. Complex glob patterns like `{VITE,NODE}_*` (supported by wax crate) ## Proposed Solution diff --git a/crates/vite_task/src/session/cache/display.rs b/crates/vite_task/src/session/cache/display.rs index 2d6cda3d..f2aa0723 100644 --- a/crates/vite_task/src/session/cache/display.rs +++ b/crates/vite_task/src/session/cache/display.rs @@ -24,11 +24,11 @@ pub enum SpawnFingerprintChange { /// Environment variable value changed EnvValueChanged { key: Str, old_value: Str, new_value: Str }, - // Pass-through env config changes - /// Pass-through env pattern added - PassThroughEnvAdded { name: Str }, - /// Pass-through env pattern removed - PassThroughEnvRemoved { name: Str }, + // Untracked env config changes + /// Untracked env pattern added + UntrackedEnvAdded { name: Str }, + /// Untracked env pattern removed + UntrackedEnvRemoved { name: Str }, // Command changes /// Program changed @@ -55,11 +55,11 @@ pub fn format_spawn_change(change: &SpawnFingerprintChange) -> Str { SpawnFingerprintChange::EnvValueChanged { key, old_value, new_value } => { vite_str::format!("env {key} value changed from '{old_value}' to '{new_value}'") } - SpawnFingerprintChange::PassThroughEnvAdded { name } => { - vite_str::format!("pass-through env '{name}' added") + SpawnFingerprintChange::UntrackedEnvAdded { name } => { + vite_str::format!("untracked env '{name}' added") } - SpawnFingerprintChange::PassThroughEnvRemoved { name } => { - vite_str::format!("pass-through env '{name}' removed") + SpawnFingerprintChange::UntrackedEnvRemoved { name } => { + vite_str::format!("untracked env '{name}' removed") } SpawnFingerprintChange::ProgramChanged => Str::from("program changed"), SpawnFingerprintChange::ArgsChanged => Str::from("args changed"), @@ -104,14 +104,14 @@ pub fn detect_spawn_fingerprint_changes( } } - // Check pass-through env config changes - let old_pass_through: FxHashSet<_> = old_env.pass_through_env_config.iter().collect(); - let new_pass_through: FxHashSet<_> = new_env.pass_through_env_config.iter().collect(); - for name in old_pass_through.difference(&new_pass_through) { - changes.push(SpawnFingerprintChange::PassThroughEnvRemoved { name: (*name).clone() }); + // Check untracked env config changes + let old_untracked: FxHashSet<_> = old_env.untracked_env_config.iter().collect(); + let new_untracked: FxHashSet<_> = new_env.untracked_env_config.iter().collect(); + for name in old_untracked.difference(&new_untracked) { + changes.push(SpawnFingerprintChange::UntrackedEnvRemoved { name: (*name).clone() }); } - for name in new_pass_through.difference(&old_pass_through) { - changes.push(SpawnFingerprintChange::PassThroughEnvAdded { name: (*name).clone() }); + for name in new_untracked.difference(&old_untracked) { + changes.push(SpawnFingerprintChange::UntrackedEnvAdded { name: (*name).clone() }); } // Check program changes @@ -164,9 +164,9 @@ pub fn format_cache_status_inline(cache_status: &CacheStatus) -> Option { | SpawnFingerprintChange::EnvValueChanged { .. }, ) => "envs changed", Some( - SpawnFingerprintChange::PassThroughEnvAdded { .. } - | SpawnFingerprintChange::PassThroughEnvRemoved { .. }, - ) => "pass-through env config changed", + SpawnFingerprintChange::UntrackedEnvAdded { .. } + | SpawnFingerprintChange::UntrackedEnvRemoved { .. }, + ) => "untracked env config changed", Some(SpawnFingerprintChange::ProgramChanged) => "program changed", Some(SpawnFingerprintChange::ArgsChanged) => "args changed", Some(SpawnFingerprintChange::CwdChanged) => "working directory changed", diff --git a/crates/vite_task_bin/src/lib.rs b/crates/vite_task_bin/src/lib.rs index 7c756af6..c3c266d7 100644 --- a/crates/vite_task_bin/src/lib.rs +++ b/crates/vite_task_bin/src/lib.rs @@ -63,7 +63,7 @@ fn synthesize_node_modules_bin_task( args: args.into(), cache_config: UserCacheConfig::with_config(EnabledCacheConfig { env: None, - pass_through_envs: None, + untracked_env: None, input: None, }), envs: Arc::clone(envs), @@ -128,7 +128,7 @@ impl vite_task::CommandHandler for CommandHandler { cache_config: UserCacheConfig::with_config({ EnabledCacheConfig { env: None, - pass_through_envs: Some(vec![name]), + untracked_env: Some(vec![name]), input: None, } }), diff --git a/crates/vite_task_bin/src/main.rs b/crates/vite_task_bin/src/main.rs index 9ff49623..54e5a8eb 100644 --- a/crates/vite_task_bin/src/main.rs +++ b/crates/vite_task_bin/src/main.rs @@ -34,7 +34,7 @@ async fn run() -> anyhow::Result { cache_config: UserCacheConfig::with_config({ EnabledCacheConfig { env: Some(Box::from([Str::from("FOO")])), - pass_through_envs: None, + untracked_env: None, input: None, } }), diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml index 013ec18b..7fada3cf 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml @@ -22,20 +22,20 @@ steps = [ ] [[e2e]] -name = "pass-through env added" +name = "untracked env added" steps = [ "vp run test # cache miss", - "json-edit vite-task.json \"_.tasks.test.passThroughEnvs = ['MY_PASSTHROUGH']\" # add pass-through env", - "vp run test # cache miss: pass-through env added", + "json-edit vite-task.json \"_.tasks.test.untrackedEnv = ['MY_UNTRACKED']\" # add untracked env", + "vp run test # cache miss: untracked env added", ] [[e2e]] -name = "pass-through env removed" +name = "untracked env removed" steps = [ - "json-edit vite-task.json \"_.tasks.test.passThroughEnvs = ['MY_PASSTHROUGH']\" # setup", + "json-edit vite-task.json \"_.tasks.test.untrackedEnv = ['MY_UNTRACKED']\" # setup", "vp run test # cache miss", - "json-edit vite-task.json \"delete _.tasks.test.passThroughEnvs\" # remove pass-through env", - "vp run test # cache miss: pass-through env removed", + "json-edit vite-task.json \"delete _.tasks.test.untrackedEnv\" # remove untracked env", + "vp run test # cache miss: untracked env removed", ] [[e2e]] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env added.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env added.snap deleted file mode 100644 index c4b6d331..00000000 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env added.snap +++ /dev/null @@ -1,12 +0,0 @@ ---- -source: crates/vite_task_bin/tests/e2e_snapshots/main.rs -expression: e2e_outputs ---- -> vp run test # cache miss -$ print-file test.txt -initial content -> json-edit vite-task.json "_.tasks.test.passThroughEnvs = ['MY_PASSTHROUGH']" # add pass-through env - -> vp run test # cache miss: pass-through env added -$ print-file test.txt ✗ cache miss: pass-through env config changed, executing -initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env removed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env removed.snap deleted file mode 100644 index 72fce09f..00000000 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/pass-through env removed.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: crates/vite_task_bin/tests/e2e_snapshots/main.rs -expression: e2e_outputs ---- -> json-edit vite-task.json "_.tasks.test.passThroughEnvs = ['MY_PASSTHROUGH']" # setup - -> vp run test # cache miss -$ print-file test.txt -initial content -> json-edit vite-task.json "delete _.tasks.test.passThroughEnvs" # remove pass-through env - -> vp run test # cache miss: pass-through env removed -$ print-file test.txt ✗ cache miss: pass-through env config changed, executing -initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap new file mode 100644 index 00000000..83506558 --- /dev/null +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap @@ -0,0 +1,12 @@ +--- +source: crates/vite_task_bin/tests/e2e_snapshots/main.rs +expression: e2e_outputs +--- +> vp run test # cache miss +$ print-file test.txt +initial content +> json-edit vite-task.json "_.tasks.test.untrackedEnv = ['MY_UNTRACKED']" # add untracked env + +> vp run test # cache miss: untracked env added +$ print-file test.txt ✗ cache miss: untracked env config changed, executing +initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap new file mode 100644 index 00000000..b29e22f2 --- /dev/null +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap @@ -0,0 +1,14 @@ +--- +source: crates/vite_task_bin/tests/e2e_snapshots/main.rs +expression: e2e_outputs +--- +> json-edit vite-task.json "_.tasks.test.untrackedEnv = ['MY_UNTRACKED']" # setup + +> vp run test # cache miss +$ print-file test.txt +initial content +> json-edit vite-task.json "delete _.tasks.test.untrackedEnv" # remove untracked env + +> vp run test # cache miss: untracked env removed +$ print-file test.txt ✗ cache miss: untracked env config changed, executing +initial content diff --git a/crates/vite_task_graph/run-config.ts b/crates/vite_task_graph/run-config.ts index 0071d5e0..9a928483 100644 --- a/crates/vite_task_graph/run-config.ts +++ b/crates/vite_task_graph/run-config.ts @@ -26,7 +26,7 @@ export type Task = { /** * Environment variable names to be passed to the task without fingerprinting. */ - passThroughEnvs?: Array; + untrackedEnv?: Array; /** * Files to include in the cache fingerprint. * diff --git a/crates/vite_task_graph/src/config/mod.rs b/crates/vite_task_graph/src/config/mod.rs index a0b620f2..0158e334 100644 --- a/crates/vite_task_graph/src/config/mod.rs +++ b/crates/vite_task_graph/src/config/mod.rs @@ -64,12 +64,9 @@ impl ResolvedTaskOptions { let cache_config = match user_options.cache_config { UserCacheConfig::Disabled { cache: MustBe!(false) } => None, UserCacheConfig::Enabled { cache: _, enabled_cache_config } => { - let mut pass_through_envs: FxHashSet = enabled_cache_config - .pass_through_envs - .unwrap_or_default() - .into_iter() - .collect(); - pass_through_envs.extend(DEFAULT_PASSTHROUGH_ENVS.iter().copied().map(Str::from)); + let mut untracked_env: FxHashSet = + enabled_cache_config.untracked_env.unwrap_or_default().into_iter().collect(); + untracked_env.extend(DEFAULT_UNTRACKED_ENV.iter().copied().map(Str::from)); let input_config = ResolvedInputConfig::from_user_config( enabled_cache_config.input.as_ref(), @@ -83,7 +80,7 @@ impl ResolvedTaskOptions { .env .map(|e| e.into_vec().into_iter().collect()) .unwrap_or_default(), - pass_through_envs, + untracked_env, }, input_config, }) @@ -238,7 +235,7 @@ pub struct EnvConfig { /// environment variable names to be fingerprinted and passed to the task, with defaults populated pub fingerprinted_envs: FxHashSet, /// environment variable names to be passed to the task without fingerprinting, with defaults populated - pub pass_through_envs: FxHashSet, + pub untracked_env: FxHashSet, } #[derive(Debug, thiserror::Error)] @@ -305,7 +302,7 @@ impl ResolvedTaskConfig { // Referenced from Turborepo's implementation: // https://github.com/vercel/turborepo/blob/26d309f073ca3ac054109ba0c29c7e230e7caac3/crates/turborepo-lib/src/task_hash.rs#L439 #[doc(hidden)] // exported for redacting snapshots in tests -pub const DEFAULT_PASSTHROUGH_ENVS: &[&str] = &[ +pub const DEFAULT_UNTRACKED_ENV: &[&str] = &[ // System and shell "HOME", "USER", diff --git a/crates/vite_task_graph/src/config/user.rs b/crates/vite_task_graph/src/config/user.rs index 250476fa..aca0368e 100644 --- a/crates/vite_task_graph/src/config/user.rs +++ b/crates/vite_task_graph/src/config/user.rs @@ -79,7 +79,7 @@ pub struct EnabledCacheConfig { pub env: Option>, /// Environment variable names to be passed to the task without fingerprinting. - pub pass_through_envs: Option>, + pub untracked_env: Option>, /// Files to include in the cache fingerprint. /// @@ -126,7 +126,7 @@ impl Default for UserTaskOptions { cache: None, enabled_cache_config: EnabledCacheConfig { env: None, - pass_through_envs: None, + untracked_env: None, input: None, }, }, @@ -411,7 +411,7 @@ mod tests { let user_config_json = json!({ "cache": true, "env": ["NODE_ENV"], - "passThroughEnvs": ["FOO"], + "untrackedEnv": ["FOO"], }); assert_eq!( serde_json::from_value::(user_config_json).unwrap(), @@ -419,7 +419,7 @@ mod tests { cache: Some(MustBe!(true)), enabled_cache_config: EnabledCacheConfig { env: Some(std::iter::once("NODE_ENV".into()).collect()), - pass_through_envs: Some(std::iter::once("FOO".into()).collect()), + untracked_env: Some(std::iter::once("FOO".into()).collect()), input: None, } }, diff --git a/crates/vite_task_plan/src/cache_metadata.rs b/crates/vite_task_plan/src/cache_metadata.rs index 6a055bed..38ed3fd0 100644 --- a/crates/vite_task_plan/src/cache_metadata.rs +++ b/crates/vite_task_plan/src/cache_metadata.rs @@ -52,16 +52,16 @@ pub struct CacheMetadata { /// /// # Environment Variable Impact on Cache /// -/// The `envs_without_pass_through` field is crucial for cache correctness: +/// The `envs_without_untracked` field is crucial for cache correctness: /// - Only includes env vars explicitly declared in the task's `env` array -/// - Does NOT include pass-through envs (PATH, CI, etc.) +/// - Does NOT include untracked envs (PATH, CI, etc.) /// - These env vars become part of the cache key /// /// When a task runs: -/// 1. All envs (including pass-through) are available to the process +/// 1. All envs (including untracked) are available to the process /// 2. Only declared envs affect the cache key /// 3. If a declared env changes value, cache will miss -/// 4. If a pass-through env changes, cache will still hit +/// 4. If an untracked env changes, cache will still hit /// /// For built-in tasks (lint, build, etc): /// - The resolver provides envs which become part of the fingerprint diff --git a/crates/vite_task_plan/src/envs.rs b/crates/vite_task_plan/src/envs.rs index 5e176220..08aafc9b 100644 --- a/crates/vite_task_plan/src/envs.rs +++ b/crates/vite_task_plan/src/envs.rs @@ -23,7 +23,7 @@ pub struct EnvFingerprints { /// Environment variable names that should be passed through without values being fingerprinted. /// /// Names are still included in the fingerprint so that changes to these names can invalidate the cache. - pub pass_through_env_config: Arc<[Str]>, + pub untracked_env_config: Arc<[Str]>, } #[derive(Debug, thiserror::Error)] @@ -42,17 +42,17 @@ impl EnvFingerprints { /// Resolves from all available envs and env config. /// /// Before the call, `all_envs` is expected to contain all available envs. - /// After the call, it will be modified to contain only envs to be passed to the execution (fingerprinted + `pass_through`). + /// After the call, it will be modified to contain only envs to be passed to the execution (fingerprinted + untracked). pub fn resolve( all_envs: &mut FxHashMap, Arc>, env_config: &EnvConfig, ) -> Result { - // Collect all envs matching fingerpinted or pass-through envs in env_config + // Collect all envs matching fingerprinted or untracked envs in env_config *all_envs = { let mut new_all_envs = resolve_envs_with_patterns( all_envs.iter(), &env_config - .pass_through_envs + .untracked_env .iter() .map(std::convert::AsRef::as_ref) .chain(env_config.fingerprinted_envs.iter().map(std::convert::AsRef::as_ref)) @@ -121,9 +121,9 @@ impl EnvFingerprints { Ok(Self { fingerprinted_envs, - // Save pass_through_envs names sorted for deterministic cache fingerprinting - pass_through_env_config: { - let mut sorted: Vec = env_config.pass_through_envs.iter().cloned().collect(); + // Save untracked_env names sorted for deterministic cache fingerprinting + untracked_env_config: { + let mut sorted: Vec = env_config.untracked_env.iter().cloned().collect(); sorted.sort(); sorted.into() }, @@ -195,10 +195,10 @@ mod tests { .collect() } - fn create_env_config(fingerprinted: &[&str], pass_through: &[&str]) -> EnvConfig { + fn create_env_config(fingerprinted: &[&str], untracked: &[&str]) -> EnvConfig { EnvConfig { fingerprinted_envs: fingerprinted.iter().map(|s| Str::from(*s)).collect(), - pass_through_envs: pass_through.iter().map(|s| Str::from(*s)).collect(), + untracked_env: untracked.iter().map(|s| Str::from(*s)).collect(), } } @@ -310,7 +310,7 @@ mod tests { "sha256:17f1ef795d5663faa129f6fe3e5335e67ac7a701d1a70533a5f4b1635413a1aa" ); - // Verify pass-through envs are present in all_envs + // Verify untracked envs are present in all_envs assert!(all_envs1.contains_key(OsStr::new("VSCODE_VAR"))); assert!(all_envs1.contains_key(OsStr::new("PATH"))); assert!(all_envs1.contains_key(OsStr::new("HOME"))); @@ -397,7 +397,7 @@ mod tests { assert!(envs1.iter().any(|(k, _)| k.as_str() == "app1_name")); assert!(envs1.iter().any(|(k, _)| k.as_str() == "app2_name")); - // Verify pass-through envs are present + // Verify untracked envs are present assert!(all_envs1.contains_key(OsStr::new("VSCODE_VAR"))); assert!( all_envs1.contains_key(OsStr::new("Path")) @@ -433,7 +433,7 @@ mod tests { } #[test] - fn test_pass_through_envs_names_stored() { + fn test_untracked_env_names_stored() { let env_config = create_env_config(&["BUILD_MODE"], &["PATH", "HOME", "CI"]); let mut all_envs = create_test_envs(vec![ @@ -445,11 +445,11 @@ mod tests { let result = EnvFingerprints::resolve(&mut all_envs, &env_config).unwrap(); - // Verify pass_through_envs names are stored - assert_eq!(result.pass_through_env_config.len(), 3); - assert!(result.pass_through_env_config.iter().any(|s| s.as_str() == "PATH")); - assert!(result.pass_through_env_config.iter().any(|s| s.as_str() == "HOME")); - assert!(result.pass_through_env_config.iter().any(|s| s.as_str() == "CI")); + // Verify untracked_env names are stored + assert_eq!(result.untracked_env_config.len(), 3); + assert!(result.untracked_env_config.iter().any(|s| s.as_str() == "PATH")); + assert!(result.untracked_env_config.iter().any(|s| s.as_str() == "HOME")); + assert!(result.untracked_env_config.iter().any(|s| s.as_str() == "CI")); } #[test] @@ -466,7 +466,7 @@ mod tests { let _result = EnvFingerprints::resolve(&mut all_envs, &env_config).unwrap(); - // all_envs should only contain fingerprinted + pass_through envs (plus auto-added ones) + // all_envs should only contain fingerprinted + untracked envs (plus auto-added ones) assert!(all_envs.contains_key(OsStr::new("KEEP_THIS"))); assert!(all_envs.contains_key(OsStr::new("PASS_THROUGH"))); assert!(!all_envs.contains_key(OsStr::new("FILTER_OUT"))); @@ -528,7 +528,7 @@ mod tests { } #[test] - fn test_playwright_env_passthrough() { + fn test_playwright_env_untracked() { // Verify PLAYWRIGHT_* pattern matches Playwright environment variables let env_config = create_env_config(&[], &["PLAYWRIGHT_*"]); diff --git a/crates/vite_task_plan/src/lib.rs b/crates/vite_task_plan/src/lib.rs index 974dead0..8ab7aa7e 100644 --- a/crates/vite_task_plan/src/lib.rs +++ b/crates/vite_task_plan/src/lib.rs @@ -45,7 +45,7 @@ pub struct SpawnCommand { /// args to be passed to the program pub args: Arc<[Str]>, - /// Environment variables to set for the command, including both fingerprinted and pass-through envs. + /// Environment variables to set for the command, including both fingerprinted and untracked envs. #[serde(serialize_with = "serialize_envs")] pub all_envs: Arc, Arc>>, diff --git a/crates/vite_task_plan/src/plan.rs b/crates/vite_task_plan/src/plan.rs index 3b5d6e07..a78addfc 100644 --- a/crates/vite_task_plan/src/plan.rs +++ b/crates/vite_task_plan/src/plan.rs @@ -383,7 +383,7 @@ pub enum ParentCacheConfig { /// the parent task's cache config with the synthetic command's own additions. /// /// Synthetic tasks (e.g., `vp lint` → `oxlint`) may declare their own cache-related -/// env requirements (e.g., `pass_through_envs` for env-test). When a parent task +/// env requirements (e.g., `untracked_env` for env-test). When a parent task /// exists, its cache config takes precedence: /// - If the parent disables caching, the synthetic task is also uncached. /// - If the parent enables caching but the synthetic disables it, caching is disabled. @@ -423,8 +423,8 @@ fn resolve_synthetic_cache_config( if let Some(extra_envs) = enabled_cache_config.env { parent_config.env_config.fingerprinted_envs.extend(extra_envs.into_vec()); } - if let Some(extra_pts) = enabled_cache_config.pass_through_envs { - parent_config.env_config.pass_through_envs.extend(extra_pts); + if let Some(extra_pts) = enabled_cache_config.untracked_env { + parent_config.env_config.untracked_env.extend(extra_pts); } Some(parent_config) } diff --git a/crates/vite_task_plan/src/plan_request.rs b/crates/vite_task_plan/src/plan_request.rs index df681893..eb5716f5 100644 --- a/crates/vite_task_plan/src/plan_request.rs +++ b/crates/vite_task_plan/src/plan_request.rs @@ -80,7 +80,7 @@ pub struct SyntheticPlanRequest { /// This is set in the plan stage before resolving envs for caching. /// Therefore, these envs are subject to env configurations in `UserTaskOptions`. /// - /// - To set envs that are not subject to caching but still passed to the spawned child, use `task_options` to configure `pass_through_envs`. + /// - To set envs that are not subject to caching but still passed to the spawned child, use `task_options` to configure `untracked_env`. /// - To set envs that should be fingerprinted, use `task_options` to configure `env`. /// - If neither is set, and caching is enabled, these envs will have not effect. pub envs: Arc, Arc>>, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap index 761dbd0c..ebe2c9fa 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap @@ -47,9 +47,9 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ + "untracked_env_config": [ "TEST_VAR", - "" + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap index f6ab4f05..e506cc61 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables script caching.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables script caching.snap index efb6c31e..121aa6e4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables script caching.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables script caching.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables task caching even when cache.tasks is false.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables task caching even when cache.tasks is false.snap index f555e0db..d4c3cd11 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables task caching even when cache.tasks is false.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables task caching even when cache.tasks is false.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache on task with per-task cache true enables caching.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache on task with per-task cache true enables caching.snap index b4d5824e..e9e9bcce 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache on task with per-task cache true enables caching.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache on task with per-task cache true enables caching.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/task graph.snap index afa12573..a66e1071 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -112,8 +112,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -146,8 +146,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap index 97c9ecb4..836f750a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap @@ -74,8 +74,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap index 59e7604a..bf64189d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap @@ -46,8 +46,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - normal task with extra args.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - normal task with extra args.snap index 0120e12d..7a141feb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - normal task with extra args.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - normal task with extra args.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap index 0cd398a9..7b25a6b8 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap @@ -46,8 +46,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap index 8e413cc9..44c43124 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap @@ -45,8 +45,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap index 2de49ed2..06c7508b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap index 71d9d8f8..915400be 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-default/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-default/snapshots/task graph.snap index 0baec88d..32480609 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-default/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-default/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-de "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-de "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-enabled/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-enabled/snapshots/task graph.snap index 5874e5ed..2f8715f6 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-enabled/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-enabled/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-en "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-en "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - another task cached by default.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - another task cached by default.snap index 56d84f3e..4ed9a5a3 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - another task cached by default.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - another task cached by default.snap @@ -47,8 +47,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-ta ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - task cached by default.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - task cached by default.snap index 53cb5467..d38e2b72 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - task cached by default.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/query - task cached by default.snap @@ -47,8 +47,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-ta ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/task graph.snap index 59a60df8..2d622a27 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-task-override/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-scripts-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing/snapshots/task graph.snap index 21f30663..7d6298a3 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-sharing "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap index 0551f120..921f6dcb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disabled/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disabled/snapshots/task graph.snap index 6d344ca2..433e4c43 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disabled/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disabled/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disa "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disa "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-tasks-disa "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - script cached when global cache true.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - script cached when global cache true.snap index a002c6f8..c74c1ccf 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - script cached when global cache true.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - script cached when global cache true.snap @@ -47,8 +47,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-fo ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - task cached when global cache true.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - task cached when global cache true.snap index d3a055e9..c8fc56e7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - task cached when global cache true.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/query - task cached when global cache true.snap @@ -47,8 +47,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-fo ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/task graph.snap index b5fe5033..ed16f082 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-force-enable/snapshots/task graph.snap @@ -44,8 +44,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-fo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -78,8 +78,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-true-no-fo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap index 756a1801..06d75640 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap @@ -45,8 +45,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap index 8e8428c2..455be33a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap @@ -72,8 +72,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap index df0d8a20..569325ef 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-task-graph/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-task-graph/snapshots/task graph.snap index 8c6d3935..db308f55 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-task-graph/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-task-graph/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -158,8 +158,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -192,8 +192,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -226,8 +226,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -260,8 +260,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -294,8 +294,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -328,8 +328,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -362,8 +362,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -396,8 +396,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -430,8 +430,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -464,8 +464,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -498,8 +498,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -532,8 +532,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -566,8 +566,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -600,8 +600,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -634,8 +634,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -668,8 +668,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -702,8 +702,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -736,8 +736,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -770,8 +770,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/comprehensive-ta "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test/snapshots/task graph.snap index 8a7028d3..0a0e6f9d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/conflict-test "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency/snapshots/task graph.snap index defb4cb8..24e8e8b3 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -61,8 +61,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cycle-dependency "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both-topo-and-explicit/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both-topo-and-explicit/snapshots/task graph.snap index cb2ab333..31cccc61 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both-topo-and-explicit/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both-topo-and-explicit/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -61,8 +61,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/dependency-both- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-package-names/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-package-names/snapshots/task graph.snap index 8e9555c8..e9a14127 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-package-names/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-package-names/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-packag "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/duplicate-packag "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-test/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-test/snapshots/task graph.snap index 680f38d2..9e49964c 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-test/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-test/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -96,8 +96,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -130,8 +130,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -164,8 +164,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -203,8 +203,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -237,8 +237,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -271,8 +271,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -305,8 +305,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/empty-package-te "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-workspace/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-workspace/snapshots/task graph.snap index caeb9f8a..aaeb7b1a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-workspace/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-workspace/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -91,8 +91,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -125,8 +125,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -159,8 +159,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -193,8 +193,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -227,8 +227,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -266,8 +266,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -300,8 +300,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -334,8 +334,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -377,8 +377,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/explicit-deps-wo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap index c0311c55..0b943a42 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -158,8 +158,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -192,8 +192,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -226,8 +226,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -260,8 +260,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -294,8 +294,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -328,8 +328,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -362,8 +362,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -396,8 +396,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -430,8 +430,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/input-trailing-slash/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/input-trailing-slash/snapshots/task graph.snap index 5ca47de3..24dff9ab 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/input-trailing-slash/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/input-trailing-slash/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/input-trailing-s "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap index 3af88331..f4155c00 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap @@ -72,8 +72,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap index 42044a23..3d49fb79 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap @@ -73,8 +73,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap index 81d55603..661a11a7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap @@ -73,8 +73,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap index a414fcad..7d6bea53 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap index cc63812a..aaeeea57 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/pnpm-workspace-packages-optional/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/pnpm-workspace-packages-optional/snapshots/task graph.snap index 7dcef729..78a6b146 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/pnpm-workspace-packages-optional/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/pnpm-workspace-packages-optional/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/pnpm-workspace-p "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topological-workspace/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topological-workspace/snapshots/task graph.snap index 5f1b9f51..4ffca3de 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topological-workspace/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topological-workspace/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -158,8 +158,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -192,8 +192,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -226,8 +226,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -260,8 +260,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/recursive-topolo "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/query - shell fallback for pipe command.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/query - shell fallback for pipe command.snap index 056a81e0..109dbe39 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/query - shell fallback for pipe command.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/query - shell fallback for pipe command.snap @@ -48,8 +48,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback ], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/task graph.snap index a37823a4..00f9833e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/shell-fallback "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots.toml index 8b02ccf2..5eaba263 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots.toml @@ -11,8 +11,8 @@ name = "task with cache true enables synthetic cache" args = ["run", "lint-with-cache"] [[plan]] -name = "task passThroughEnvs inherited by synthetic" -args = ["run", "lint-with-pass-through-envs"] +name = "task untrackedEnv inherited by synthetic" +args = ["run", "lint-with-untracked-env"] [[plan]] name = "parent cache false does not affect expanded query tasks" diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap index c0715ca4..5d5a9c6d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap @@ -70,8 +70,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap index dd59626d..636c49fb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap @@ -70,8 +70,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task passThroughEnvs inherited by synthetic.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap similarity index 86% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task passThroughEnvs inherited by synthetic.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap index b4d5d242..d6f8c25d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task passThroughEnvs inherited by synthetic.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap @@ -4,19 +4,19 @@ expression: "&plan_json" info: args: - run - - lint-with-pass-through-envs + - lint-with-untracked-env input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled --- [ { "key": [ "/", - "lint-with-pass-through-envs" + "lint-with-untracked-env" ], "node": { "task_display": { "package_name": "@test/synthetic-cache-disabled", - "task_name": "lint-with-pass-through-envs", + "task_name": "lint-with-untracked-env", "package_path": "/" }, "items": [ @@ -24,7 +24,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "execution_item_display": { "task_display": { "package_name": "@test/synthetic-cache-disabled", - "task_name": "lint-with-pass-through-envs", + "task_name": "lint-with-untracked-env", "package_path": "/" }, "command": "vp lint", @@ -45,15 +45,15 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ + "untracked_env_config": [ "CUSTOM_VAR", - "" + "" ] } }, "execution_cache_key": { "UserTask": { - "task_name": "lint-with-pass-through-envs", + "task_name": "lint-with-untracked-env", "and_item_index": 0, "extra_args": [], "package_path": "" diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap index 782d7ce9..462c04b4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap @@ -45,8 +45,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap index dc55b774..806555b4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -112,8 +112,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -131,12 +131,12 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- { "key": [ "/", - "lint-with-pass-through-envs" + "lint-with-untracked-env" ], "node": { "task_display": { "package_name": "@test/synthetic-cache-disabled", - "task_name": "lint-with-pass-through-envs", + "task_name": "lint-with-untracked-env", "package_path": "/" }, "resolved_config": { @@ -146,9 +146,9 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ + "untracked_env": [ "CUSTOM_VAR", - "" + "" ] }, "input_config": { @@ -181,8 +181,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json index 754a54b7..8158f83b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json @@ -8,9 +8,9 @@ "command": "vp lint", "cache": true }, - "lint-with-pass-through-envs": { + "lint-with-untracked-env": { "command": "vp lint", - "passThroughEnvs": ["CUSTOM_VAR"] + "untrackedEnv": ["CUSTOM_VAR"] }, "build": { "command": "vp lint", diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap index 34cf09c1..5b3ea363 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap @@ -70,8 +70,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "args": [], "env_fingerprints": { "fingerprinted_envs": {}, - "pass_through_env_config": [ - "" + "untracked_env_config": [ + "" ] } }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap index 20a50f36..db79be84 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip-intermediate/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip-intermediate/snapshots/task graph.snap index 949e3f91..f28fdf84 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip-intermediate/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip-intermediate/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/transitive-skip- "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/task graph.snap index 50d674f8..83a7535b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap index 1e34a621..2076590e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-c "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-c "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap index f59e82f9..088a4c4a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-d "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -61,8 +61,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-d "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -95,8 +95,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-d "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -129,8 +129,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-d "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap index 60af8782..a4ebfd9c 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap index deb8564a..2414b07c 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -124,8 +124,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-no-package-json/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-no-package-json/snapshots/task graph.snap index 151c7785..9a47bc01 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-no-package-json/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-no-package-json/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-n "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-n "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap index 317b13b3..97461bd0 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap @@ -22,8 +22,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-s "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -56,8 +56,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-s "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { @@ -90,8 +90,8 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-s "cache_config": { "env_config": { "fingerprinted_envs": [], - "pass_through_envs": [ - "" + "untracked_env": [ + "" ] }, "input_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/redact.rs b/crates/vite_task_plan/tests/plan_snapshots/redact.rs index ad6f285a..ecdc0626 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/redact.rs +++ b/crates/vite_task_plan/tests/plan_snapshots/redact.rs @@ -2,7 +2,7 @@ use std::borrow::Cow; use cow_utils::CowUtils as _; use serde::Serialize; -use vite_task_graph::config::DEFAULT_PASSTHROUGH_ENVS; +use vite_task_graph::config::DEFAULT_UNTRACKED_ENV; fn visit_json(value: &mut serde_json::Value, f: &mut impl FnMut(&mut serde_json::Value)) { f(value); @@ -162,21 +162,21 @@ pub fn redact_snapshot(value: &impl Serialize, workspace_root: &str) -> serde_js let serde_json::Value::Array(array) = v else { return; }; - let contains_all_default_pass_through_envs = - DEFAULT_PASSTHROUGH_ENVS.iter().all(|default_pass_through_envs| { + let contains_all_default_untracked_env = + DEFAULT_UNTRACKED_ENV.iter().all(|default_untracked_env| { array.iter().any(|item| { if let serde_json::Value::String(s) = item { - s == *default_pass_through_envs + s == *default_untracked_env } else { false } }) }); - // Remove default pass-through envs from snapshots to reduce noise - if contains_all_default_pass_through_envs { + // Remove default untracked envs from snapshots to reduce noise + if contains_all_default_untracked_env { array.retain(|item| { if let serde_json::Value::String(s) = item { - !DEFAULT_PASSTHROUGH_ENVS.contains(&s.as_str()) + !DEFAULT_UNTRACKED_ENV.contains(&s.as_str()) } else { true } @@ -187,7 +187,7 @@ pub fn redact_snapshot(value: &impl Serialize, workspace_root: &str) -> serde_js let b_str = if let serde_json::Value::String(s) = b { s.as_str() } else { "" }; a_str.cmp(b_str) }); - array.push(serde_json::Value::String("".to_string())); + array.push(serde_json::Value::String("".to_string())); } });