Skip to content

Commit

Permalink
mark command line env as session dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 10, 2024
1 parent d76c606 commit 075ee01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion turbopack/crates/turbo-tasks-env/src/command_line.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use indexmap::IndexMap;
use turbo_tasks::{RcStr, Vc};
use turbo_tasks::{mark_session_dependent, RcStr, Vc};

use crate::{sorted_env_vars, EnvMap, ProcessEnv, GLOBAL_ENV_LOCK};

Expand All @@ -25,6 +25,7 @@ fn env_snapshot() -> IndexMap<RcStr, RcStr> {
impl ProcessEnv for CommandLineProcessEnv {
#[turbo_tasks::function]
fn read_all(&self) -> Vc<EnvMap> {
mark_session_dependent();
Vc::cell(env_snapshot())
}
}

0 comments on commit 075ee01

Please sign in to comment.