Skip to content

Commit

Permalink
Add CARGO to list of variables removed by sanitize_environment
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 11, 2024
1 parent 85d6d41 commit 5697d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ macro_rules! declare_const {
};
}

declare_const!(CARGO);
declare_const!(CARGO_CRATE_NAME);
declare_const!(CARGO_HOME);
declare_const!(CARGO_INCREMENTAL);
Expand Down
1 change: 1 addition & 0 deletions internal/src/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub trait SanitizeEnvironment {

impl SanitizeEnvironment for Command {
fn sanitize_environment(&mut self) -> &mut Self {
self.env_remove(env::CARGO);
self.env_remove(env::RUSTC);
self.env_remove(env::RUSTUP_TOOLCHAIN);
self
Expand Down

0 comments on commit 5697d96

Please sign in to comment.