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

handle empty string rustc wrapper envs #7

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

tofay
Copy link
Contributor

@tofay tofay commented Feb 23, 2023

If RUSTC_WRAPPER/RUSTC_WORKSPACE_WRAPPER is set to an empty string then this overrides the config and tells cargo not to use a wrapper, per https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads.

I spotted this when upgrading cargo-llvm-cov from an older version, as I have some CI environments where RUSTC_WRAPPER is set to an empty string and it broke cargo-llvm-cov's rustc version detection.

Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

src/env.rs Outdated Show resolved Hide resolved
@taiki-e taiki-e merged commit 1d7d634 into taiki-e:main Feb 23, 2023
@taiki-e
Copy link
Owner

taiki-e commented Feb 23, 2023

Published in v0.1.5.

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.

2 participants