-
Notifications
You must be signed in to change notification settings - Fork 385
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
Pass cargo configuration flags to docker. #869
Conversation
Setting |
This is ready for review. The only envvars that might not work are the proxy ones, but it's better to fail hard with these than accept inaccurate configurations. |
Ensures the following flags are passed to docker: - BROWSER - CARGO_BUILD_DEP_INFO_BASEDIR - CARGO_BUILD_INCREMENTAL - CARGO_BUILD_JOBS - CARGO_BUILD_RUSTDOCFLAGS - CARGO_BUILD_RUSTFLAGS - CARGO_CACHE_RUSTC_INFO - CARGO_CACHE_RUSTC_INFO - CARGO_FUTURE_INCOMPAT_REPORT_FREQUENCY - CARGO_HTTP_CAINFO - CARGO_HTTP_CHECK_REVOKE - CARGO_HTTP_DEBUG - CARGO_HTTP_LOW_SPEED_LIMIT - CARGO_HTTP_MULTIPLEXING - CARGO_HTTP_PROXY - CARGO_HTTP_SSL_VERSION - CARGO_HTTP_TIMEOUT - CARGO_HTTP_USER_AGENT - CARGO_INCREMENTAL - CARGO_INCREMENTAL - CARGO_NET_GIT_FETCH_WITH_CLI - CARGO_NET_OFFLINE - CARGO_NET_RETRY - HTTP_TIMEOUT - HTTPS_PROXY - RUSTDOCFLAGS - RUSTFLAGS - TERM These are always correct, since these configure how `cargo` behavior is supposed to work, but don't rely on any paths on the host filesystem. We also have some future-proofing, since we accept anything starting with `CARGO_` except the following variables: It also ensures the following overridden environment variables are not passed: - CARGO_HOME - CARGO_TARGET_DIR - CARGO_BUILD_TARGET_DIR And it ensures the following not-yet-supported environment variables are not passed: - CARGO_BUILD_RUSTC - CARGO_BUILD_RUSTC_WRAPPER - CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER - CARGO_BUILD_RUSTDOC
bors r=Emilgardis |
Build succeeded: |
Pass cargo configuration flags to docker.
Ensures the following flags are passed to docker:
These are always correct, since these configure how
cargo
behavior issupposed to work, but don't rely on any paths on the host filesystem. We also have some future-proofing, since we accept anything starting with
CARGO_
except the following variables:It also ensures the following overridden environment variables are not passed:
And it ensures the following not-yet-supported environment variables are not passed: