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

Fix multiple rlibs error in compile-test.rs #7630

Closed
wants to merge 1 commit into from

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Sep 4, 2021

fixes: #7343

This solves the problem by looking up the dependencies of the currently running test. There is a requirement that all the crates are mentioned in Cargo.toml, but I don't see that as a big downside (It also happens to guarantee they're built).

The only downside is this will break if/when cargo changes how fingerprint hashes are calculated. Really this should depend on cargo for that, but it's a large dependency and I don't think cargo is in the sysroot.

changelog: none

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 4, 2021
@camsteffen
Copy link
Contributor

Looks like we worked on this at the same time. I found a different solution that is less dependent on cargo internals. I may open a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail with conflicting external dependencies in the target directory
3 participants