-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT. #56194
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
📌 Commit 894fd10 has been approved by |
Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT. The last failures I noticed before adding the `__CARGO_TEST_ROOT` hack were in `src/test/run-make/thumb-none-{cortex-m,qemu}`, and had to do with the fact that the top-level `Cargo.toml` uses nightly Cargo features. If that's the only problem, this PR should work, and we can figure out how to unbreak RLS.
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
So it is indeed an error, not just a warning. |
r=me if this strategy passes tests! |
@alexcrichton It doesn't ("error: current package believes it's in a workspace when it's not"). What we need is to either have the default be not treating a package as being in a workspace just because it's nested directory-wise (and only e.g. produce a warning), or have some opt-out mechanism (like Maybe a way to say that the |
I believe as of recently cargo supports an |
Oh, heh, it was already used for something else, I just didn't notice! @bors r=alexcrichton |
📌 Commit 20461a22b1276da654fd4909847ee94ec459128f has been approved by |
⌛ Testing commit 20461a22b1276da654fd4909847ee94ec459128f with merge dbce8625f9d6a9528e14c6f0972f589dd39e63c2... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@alexcrichton Hmm, on the CI, the build dir is Alternatively, a tmp dir could be used for tescases that are also Cargo projects. |
@bors r=alexcrichton |
📌 Commit 6aa4eb9 has been approved by |
Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT. The last failures I noticed before adding the `__CARGO_TEST_ROOT` hack were in `src/test/run-make/thumb-none-{cortex-m,qemu}`, and had to do with the fact that the top-level `Cargo.toml` uses nightly Cargo features. If that's the only problem, this PR should work, and we can figure out how to unbreak RLS.
☀️ Test successful - status-appveyor, status-travis |
Tested on commit rust-lang/rust@c14ab13. Direct link to PR: <rust-lang/rust#56194> 🎉 rls on windows: test-fail → test-pass (cc @nrc @Xanewok, @rust-lang/infra). 🎉 rls on linux: test-fail → test-pass (cc @nrc @Xanewok, @rust-lang/infra).
The last failures I noticed before adding the
__CARGO_TEST_ROOT
hack were insrc/test/run-make/thumb-none-{cortex-m,qemu}
, and had to do with the fact that the top-levelCargo.toml
uses nightly Cargo features.If that's the only problem, this PR should work, and we can figure out how to unbreak RLS.