-
Notifications
You must be signed in to change notification settings - Fork 603
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
Unknown extra binary listed for data-encoding-bin #9222
Comments
hmm, from what I can see in the Cargo.toml file that indeed appears to be incorrect. I'll take a look once I'm back from vacation :) |
Thanks for the quick feedback! No rush :-) enjoy your vacation! |
I think the culprit is the following: let has_main_rs = src.contains("main.rs");
if has_main_rs {
let target = DiscoveredTarget {
name: package.name.clone(),
path: "src/main.rs".to_string(),
};
discovered_targets.push(target);
}
process_discovered_targets(&mut self.bin, discovered_targets, autobins)?; It adds a target with the package name ( Footnotes |
Maybe that's enough to fix the issue, but it looks to me that the situation is more complicated than that. To the best of my understanding, the |
Oh, there's |
Thanks for the debugging! I think it makes sense now. For |
LukeMathWalker/cargo-manifest#51 should hopefully fix the issue |
fix is deployed and I've rerun the backfilling script for crate versions with more than one bin (about 47k versions). I think we're done here :) let me know if I missed anything! |
Looks good to me, thanks! |
Current Behavior
I've read about #5882 in the news and wanted to check it on my binary crates:
wasefire-cli
it's all good. The text displaysRunning the above command will globally install the wasefire binary.
which is correct.data-encoding-bin
it's wrong. The text displaysRunning the above command will globally install the data-encoding and data-encoding-bin binaries.
while to my understanding there should only be a single build-target, nameddata-encoding
.Expected Behavior
For
data-encoding-bin
, the text displaysRunning the above command will globally install the data-encoding binary.
.Steps To Reproduce
cargo install data-encoding-bin
ls ~/.cargo/bin/data-encoding*
lists onlydata-encoding
binaryEnvironment
I hope it's irrelevant, but Chrome on Linux.
Anything else?
No response
The text was updated successfully, but these errors were encountered: