Skip to content
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

bootstrap: read config from $RUST_BOOTSTRAP_CONFIG #73317

Merged
merged 1 commit into from
Jun 19, 2020

Commits on Jun 16, 2020

  1. bootstrap: read config from $RUST_BOOTSTRAP_CONFIG

    This commit modifies bootstrap so that `config.toml` is read first from
    `RUST_BOOTSTRAP_CONFIG`, then `--config` and finally `config.toml` in the
    current directory.
    
    This is a subjective change, intended to improve the ergnomics when
    using "development shells" for rustc development (for example, using tools
    such as Nix) which set environment variables to ensure a reproducible
    environment (these development shells can then be version controlled). By
    optionally reading `config.toml` from an environment variable, a `config.toml`
    can be defined in the development shell and a path to it exposed in the
    `RUST_BOOTSTRAP_CONFIG` environment variable - avoiding the need to manually
    symlink the contents of this file to `config.toml` in the working
    directory.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    93022be View commit details
    Browse the repository at this point in the history