-
Notifications
You must be signed in to change notification settings - Fork 392
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 env #683
fix env #683
Conversation
f70fa5b
to
ad583fb
Compare
we don't have any tests for these, we should |
9e4cf23
to
2e55b1c
Compare
https://github.com/cross-rs/cross/runs/5854579013?check_suite_focus=true#logs Logs/home/runner/.cargo/bin/cargo test --locked --all-targets --workspace running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
running 1 test failures: ---- toml_check stdout ----
failures: test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s error: test failed, to rerun pass '-p ci --test toml' 🎉 |
I've left a question over on the rust discord, about making it so that docs.rs shows Seems it's not possible. The reason I want this is for making it so that the additional dependencies do not follow, as dev-dependencies are not possible to feature gate. But maybe this is not as big of a concern as I'm thinking it is. |
This is ready now, I opted out of trying to be smart with using another workspace member for this. Instead just use normal integration test |
let output = std::process::Command::new( | ||
std::env::var("CARGO") | ||
.ok() | ||
.unwrap_or_else(|| "cargo".to_string()), | ||
) | ||
.arg("metadata") | ||
.arg("--format-version=1") | ||
.arg("--no-deps") | ||
.current_dir(manifest_dir) | ||
.output() | ||
.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this is what we should probably actually use on/with #494
bors r=reitermarkus |
Build succeeded: |
Fixes a wrong assumption done in #670 where we went from
to
this fixes that, and makes sure that all markdown toml fences are checked in CI for correctness.
This pr also "un-opts" what was previously
CrossBuildConfig
to simplify a bit, see #670 (comment)