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

cargo check panics with the latest nightly #15116

Open
theoparis opened this issue Jan 28, 2025 · 2 comments
Open

cargo check panics with the latest nightly #15116

theoparis opened this issue Jan 28, 2025 · 2 comments
Labels
C-bug Category: bug S-triage Status: This issue is waiting on initial triage.

Comments

@theoparis
Copy link

Problem

cargo check panics but cargo build works fine.

Steps

  1. git clone https://github.com/theoparis/rust-os
  2. git checkout a0ad932fda5100a2a91b913e00336515fb660ae9
  3. cargo check

Possible Solution(s)

No response

Notes

cargo-check.log

Version

cargo 1.86.0-nightly (cecde95c1 2025-01-24)
release: 1.86.0-nightly
commit-hash: cecde95c119a456c30e57d3e4b31fff5a7d83df4
commit-date: 2025-01-24
host: aarch64-unknown-linux-gnu
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Ubuntu 24.10.0 (oracular) [64-bit]
@theoparis theoparis added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Jan 28, 2025
@theoparis
Copy link
Author

theoparis commented Jan 28, 2025

Nevermind, it seems like cargo is ignoring default-target. I'm not aware of another way to set the default target in a single workspace package 😕
Edit: related? #10330 seems dead though
Still don't think it should just panic like this though.

@epage
Copy link
Contributor

epage commented Jan 28, 2025

For the per-package-target feature, the field is named forced-target and not default-target, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#per-package-target

I tried to reproduce this locally, following the given steps, and did not see a panic. I did

cargo 1.86.0-nightly (cecde95c1 2025-01-24)
release: 1.86.0-nightly
commit-hash: cecde95c119a456c30e57d3e4b31fff5a7d83df4
commit-date: 2025-01-24
host: x86_64-unknown-linux-gnu
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Pop!_OS 22.4.0 (jammy) [64-bit]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants