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

Option to disable host compiler fallback #1232

Closed
1 of 2 tasks
mcandre opened this issue Mar 26, 2023 · 1 comment
Closed
1 of 2 tasks

Option to disable host compiler fallback #1232

mcandre opened this issue Mar 26, 2023 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Mar 26, 2023

Checklist

Describe your request

As a DevOp, I want a CLI flag that disables host compiler fallback in the event that a Docker image is not found, in order to reduce mistakes during complex build pipelines.

Current behavior:

$ cross build
[cross] warning: `cross` does not provide a Docker image for target aarch64-apple-darwin, specify a custom image in `Cross.toml`.
[cross] note: Falling back to `cargo` on the host.
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s

Instead of [cross] note: Falling back to cargo on the host., I want to see an error message.

Instead of continuing the build, I want cross to terminate immediately.

Instead of a successful exit code, I want a failure exit code emitted.

Describe why this would be a good inclusion for cross

The fallback behavior can result in accidents, where engineers think they are building a cross-compiling artifacts for one platform, and end up generates artifacts that target the host platform instead.

I want no fallback. I want the build to fail early, and loudly.

@Emilgardis
Copy link
Member

Emilgardis commented Mar 26, 2023

This is a duplicate of #659 ! which is in the pipeline to be implemented for the next release (#661)!

@Emilgardis Emilgardis closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants