Skip to content

don't spin on CARGO=cross #865

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

Closed
wants to merge 1 commit into from
Closed

Conversation

Emilgardis
Copy link
Member

fixes #864

@Emilgardis Emilgardis requested a review from a team as a code owner June 26, 2022 13:07
@Emilgardis
Copy link
Member Author

Emilgardis commented Jun 26, 2022

I don't like this approach, but it simulates what we did in 0.2.1 before #808, only difference is that there's some indirection happening

@@ -1,6 +1,17 @@
#![deny(missing_debug_implementations, rust_2018_idioms)]

pub fn main() -> cross::Result<()> {
if std::env::var(cross::IN_CROSS_CONTEXT_ENV).is_ok() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is the correct approach.

Alexhuszagh added a commit to Alexhuszagh/cross that referenced this pull request Jun 26, 2022
Provides behavior consistent with `cargo` itself, which also ignores it.

Closes cross-rs#864.
Supersedes cross-rs#865.
Partially reverts cross-rs#808.
bors bot added a commit that referenced this pull request Jun 26, 2022
868: Ignore the `CARGO` environment variable. r=Emilgardis a=Alexhuszagh

Provides behavior consistent with `cargo` itself, which also ignores it.

Closes #864.
Supersedes #865.
Partially reverts #808.

Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
@Alexhuszagh
Copy link
Contributor

Closed since we approved #868.

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.

cross 0.2.2 hangs forever when CARGO env var set to cross
2 participants