-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo run
spills additional variables into the environment
#4002
Comments
Could you show us your |
# Cargo.toml
[package]
name = "htest"
version = "0.1.0"
authors = ["Jethro Beekman"]
[dependencies] # Cargo.lock
[root]
name = "htest"
version = "0.1.0" // src/main.rs
fn main() {
for (k,v) in std::env::vars() {
println!("{}={}",k,v);
}
} |
Looks like it's possibly a dependency of Cargo. I'm afraid I don't know enough there. |
I believe this is a dupe of #2888, so closing in favor of that one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today I was debugging an issue where the same code used in two different places was behaving differently. After about an hour of head-desking I found out that this is because I was using
cargo run
in one of the places and invoking a binary directly in the other place.On my Ubuntu 16.04 system
cargo
(f9e5481 2017-03-03) sets/changes the following environment variables:Additionally,
rustup
sets/changes the following variables:I think most of these are probably OK to set because they are namespaced appropriately or expected to be set by wrappers/build tools. Not so for SSL_CERT_DIR and SSL_CERT_FILE.
cargo
really has no business messing with my SSL configuration when running build artifacts.The text was updated successfully, but these errors were encountered: