Skip to content

cargo fix should serialize on entire workspace #6528

Closed
@baumanj

Description

@baumanj

(Edit ehuss): cargo fix in a workspace should serialize across the entire workspace (currently it only locks each package). This is needed if something like include! 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:

➤ rustc --version
rustc 1.31.0 (abe02cefd 2018-12-04)

09:18:05 AM jbauman@ubuntu:~
➤ cargo --version
cargo 1.31.0 (339d9f9c8 2018-11-16)

➤ uname -a
Linux ubuntu 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions