-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 fix should serialize on entire workspace #6528
Comments
Yikes, that's quite a few issues. I noticed that your initial edition transition did not fix non-linux targets. Any code marked with things like I can try to reduce some of the errors. I already see a few that haven't been reported before. |
That's helpful to know about the As I work through the fixes, one thing I'm noticed is that However, once the use ::time::Duration; However, when I pass this through use time::Duration; which is ambiguous again. Should I file a separate issue for that? |
Here are the fixes that I made to get things building again (at least on linux) after running |
Nah, I'm finding quite a few different issues, and I'll file upstream and link here once I've got them all. |
OK, not sure if I got all of them, but here's what I found:
@baumanj Have you been able to get everything working? Let me know if you have any questions, or anything you can't figure out. |
@ehuss oh jeez, but yeah for now seems like we need to serialize workspace crates, not just packages |
I think so! Everything builds locally, but we're having an issue with our CI so can't say for certain that it's working on all platforms. I don't anticipate any further cargo-related issues, but if there's anything relevant, I'll follow up here. Thanks for being so responsive and all your awesome work here! |
(Edit ehuss):
cargo fix
in a workspace should serialize across the entire workspace (currently it only locks each package). This is needed if something likeinclude!
is used in multiple packages to the same file. The two packages will attempt to fix the shared file at the same time, causing problems.Original Issue
Starting from https://github.com/habitat-sh/habitat/tree/066d60d52d4e65c6978d6a8f62962035b5fa4ba5, applying
cargo fix --edition-idioms
led to compilation errors, so I'm filing a bug report per the output's request. Some additional system information:If I find any interesting information in fixing up the errors, I'll post a follow-up. In the meantime, I'm attaching the full output of the cargo fix command.
cargo-fix-output.txt
The text was updated successfully, but these errors were encountered: