You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::process:Command has an env_clear method to clear all environment variables before forking a process. As far as I can tell, it's not possible to call this on rustwide::cmd::Command. It would be nice to add it. In particular, docs.rs uses rustwide::cmd::Command to run cargo fetch in a non-containerized process; clearing the environment would be one simple way to reduce the possibility of accidentally propagating host configuration. See rust-lang/docs.rs#1881 for an example.
The text was updated successfully, but these errors were encountered:
std::process:Command has an env_clear method to clear all environment variables before forking a process. As far as I can tell, it's not possible to call this on rustwide::cmd::Command. It would be nice to add it. In particular, docs.rs uses rustwide::cmd::Command to run
cargo fetch
in a non-containerized process; clearing the environment would be one simple way to reduce the possibility of accidentally propagating host configuration. See rust-lang/docs.rs#1881 for an example.The text was updated successfully, but these errors were encountered: