Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRead configuration from environment variables #2398
Conversation
alexcrichton
added some commits
Feb 19, 2016
rust-highfive
assigned
wycats
Feb 19, 2016
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Feb 19, 2016
|
r? @wycats (rust_highfive has picked a reviewer for you, use r? to override) |
This was referenced Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
rust-highfive
assigned
brson
and unassigned
wycats
Feb 26, 2016
alexcrichton
added
the
relnotes
label
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
How does this impact |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Feb 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Ah yeah I mentioned it in this comment. Basically I think it's fine that we would support The |
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton commentedFeb 19, 2016
This commit adds a more principled system to rationalize what ends up being a
configuration value versus an environment variable. This problem is solved by
just saying that they're one and the same! Similar to Bundler, this commit
supports overriding the
foo.barconfiguration value with theCARGO_FOO_BARenvironment variable.
Currently this is used as part of the
get_stringandget_i64methods onConfig. This means, for example, that the following environment variables cannow be used to configure Cargo:
Currently it's not supported to encode a list in an environment variable, so for
example
CARGO_PATHSwould not be read when reading the globalpathsconfiguration value.
cc #2362
cc #2395 -- intended to close this in tandem with #2397