Skip to content

Updating Cargo.lock can result in dependency cycle #65014

Closed
@mati865

Description

@mati865

Bumping few packages can result in dependency cycle.

Single command reproducer:

$ cargo update --aggressive -p cargo            
    Updating crates.io index
    Updating git repository `https://github.com/rust-lang/cargo`
error: cyclic package dependency: package `compiler_builtins v0.1.19` depends on itself. Cycle:
package `compiler_builtins v0.1.19`
    ... which is depended on by `alloc v0.0.0 (/home/mateusz/Projects/rust/rust/src/liballoc)`
    ... which is depended on by `panic_unwind v0.0.0 (/home/mateusz/Projects/rust/rust/src/libpanic_unwind)`
    ... which is depended on by `std v0.0.0 (/home/mateusz/Projects/rust/rust/src/libstd)`
    ... which is depended on by `proc_macro v0.0.0 (/home/mateusz/Projects/rust/rust/src/libproc_macro)`
    ... which is depended on by `test v0.0.0 (/home/mateusz/Projects/rust/rust/src/libtest)`

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions