-
Notifications
You must be signed in to change notification settings - Fork 104
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
assertion failed: tree_output.status.success() in some binary-only targets #530
Comments
Looking in further, by running
I'm not sure if this is because the
I wonder if the fact that the lock file is in a different directory is part of the issue |
I've been able to narrow down to the following lines in my [package.metadata.raze.binary_deps]
cxxbridge-cmd = "1.0.78" Not sure why this is an issue, but it seems like the issue is binary deps |
After further debugging, it looks like the output of the tree command failing is:
|
You can find a minimum reproducible example here: https://github.com/rdelfin/rust-bazel-test |
@sayrer I see you're the author of the PR. Would you know what the issue is here? I'm not terribly familiar with this level of cargo details |
Apparently I accidentally made the repo private. It's now fixed |
I've tracked down the issue to how the whole temporary cargo directory is generated. If you look at what it looks like on the example project I linked above, you see this file structure (most of the cxx-bridge directory omited for simplicity):
If you look at the Cargo.toml file, you'll notice it generates both a package at the root, and it defines a workspace (a lot of the file omited for brevity):
Took me a while to figure out exactly what the issue was, but finally I managed to get a good, valid output by running |
Looking at the original PR, I just noticed there's a PR, #524 that fixes the issue |
I'm in the process of trying to upgrade the version of cargo raze to 0.16 from 0.15 in a repo I am a part of, but when I upgrade, I consistently get the error
thread 'main' panicked at 'assertion failed: tree_output.status.success()', src/features.rs:149:3
(I'll leave a full stack trace below).Through bisecting, I've been able to narrow it down to 743bd26 (aka #478). What I don't understand is, what does this error mean, and why would my repo generate this when it worked fine in 0.15? Is this some thing we're doing wrong in our
Cargo.toml
, or is this a bug?Backtrace:
Minimum reproducible example:
https://github.com/rdelfin/rust-bazel-test
The text was updated successfully, but these errors were encountered: