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

Set CARGO and RUSTC environment variables to make Bazel tests more hermetic #369

Merged
merged 1 commit into from
Feb 20, 2021
Merged

Set CARGO and RUSTC environment variables to make Bazel tests more hermetic #369

merged 1 commit into from
Feb 20, 2021

Conversation

UebelAndre
Copy link
Collaborator

@UebelAndre UebelAndre commented Feb 20, 2021

Using the changes introduced in bazelbuild/rules_rust#588, cargo raze can now correctly specify the cargo and rustc binaries to use during tests and no longer require the host to have either installed. For users running the target, however, the binaries are still required to be installed but this should be a simple change that can be made in the future

@UebelAndre
Copy link
Collaborator Author

@dfreese This one solves for one of issues @acmcarther ran into in his quest for setting up BazelCI. This contains the most impactful fixes of getting that working.

@dfreese
Copy link
Collaborator

dfreese commented Feb 20, 2021

This looks like it deals with three separate issues. Can you break those out into individual PRs?

@UebelAndre
Copy link
Collaborator Author

UebelAndre commented Feb 20, 2021

This looks like it deals with three separate issues. Can you break those out into individual PRs?

@dfreese This has been split into #372 and #371

@UebelAndre UebelAndre changed the title Tests and builds can now run hermetically in Bazel Set CARGO and RUSTC environment variables to make tests more hermetic Feb 20, 2021
@UebelAndre UebelAndre changed the title Set CARGO and RUSTC environment variables to make tests more hermetic Set CARGO and RUSTC environment variables to make Bazel tests more hermetic Feb 20, 2021
@dfreese dfreese merged commit 9ecec16 into google:master Feb 20, 2021
@UebelAndre UebelAndre deleted the hermetic branch February 20, 2021 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants