-
Notifications
You must be signed in to change notification settings - Fork 2.6k
-Zbindeps
panics with activated_features for invalid package: features did not find PackageId
#10431
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
bindep
panics with activated_features for invalid package: features did not find PackageId -Zbindeps
panics with activated_features for invalid package: features did not find PackageId
Thanks! @Byron I think the issue is these lines. I believe those should be looking at |
Thanks for taking a look @ehuss ! |
Thanks @Jasper-Bekkers for the files, I will try to reproduce it today, thanks @ehuss for narrowing it down, that will help with the fix. |
3 tasks
Byron
added a commit
to Byron/cargo
that referenced
this issue
Feb 28, 2022
6 tasks
bors
added a commit
that referenced
this issue
Mar 16, 2022
Fix panic when artifact target is used for `[target.'cfg(<target>)'.dependencies` With an artifact dependency like this in package `a`… ```toml [dependencies.a] path = "b" artifact = "bin" target = "$TARGET" ``` …and when using `$TARGET` like this in another package `b`… ```toml [target.'cfg(target_arch = "$ARCHOF_$TARGET")'.dependencies] c = { path = "../c" } ``` …it panics with `thread 'main' panicked at 'activated_features for invalid package: features did not find PackageId <dbg-info>`, but we would expect this to work normally. ### Tasks - [x] reproduce issue in new test - [x] figure out why the test is fixed but the real-world example isn't - [x] find a fix Fixes #10431 and #10452.
This was referenced Mar 22, 2022
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Problem
Attached is a small copy of the project, it's a copy of the android-ndk-rs hello world sample that I'm trying to adapt to use bindeps to see if I can have them create an apk.
android-test.zip
Steps
cargo +nightly build -Zbindeps
, or a clean cargo from main (5be1b1b5b
)Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: