Skip to content

Linux cargo treating crate warnings as errors #15393

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
mcandre opened this issue Apr 4, 2025 · 1 comment
Closed

Linux cargo treating crate warnings as errors #15393

mcandre opened this issue Apr 4, 2025 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Apr 4, 2025

For some reason when GitHub Actions installs the cross crate in Ubuntu Linux, then it terminates with 17 errors on minor coding quirks.

https://github.com/mcandre/crit/actions/runs/14273528463/job/40011901318

The same command on macOS treats these as warnings and is able to complete installation.

Rust 1.86.0

See also actions-rust-lang/setup-rust-toolchain#56

@ehuss
Copy link
Contributor

ehuss commented Apr 4, 2025

It looks like the default for that action is to deny warnings: https://github.com/actions-rust-lang/setup-rust-toolchain/blob/9399c7bb15d4c7d47b27263d024f0a4978346ba4/action.yml#L55

This does not appear to be a cargo issue. If you have more questions, I recommend following up with the author of that action, or trying one of the forums such as https://users.rust-lang.org/.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2025
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

No branches or pull requests

2 participants