pub fn pass_through_env(
        &self,
        builtins: &[&str],
        global_env: &Self,
        task_pass_through: &[impl AsRef<str>],
    ) -> Result<Self, Error> {
        let mut pass_through_env = EnvironmentVariableMap::default();
        let default_env_var_pass_through_map = self.from_wildcards(builtins)?;
        let task_pass_through_env =
            self.wildcard_map_from_wildcards_unresolved(task_pass_through)?;

        pass_through_env.union(&default_env_var_pass_through_map);
        pass_through_env.union(global_env);
        pass_through_env.union(&task_pass_through_env.inclusions);
        pass_through_env.difference(&task_pass_through_env.exclusions);

        Ok(pass_through_env)
    }
Constructs an environment map that contains pass through environment
variables
crates/turborepo-env/src/lib.rs