Skip to content

Version update also updates the a public dependency #94

Open
@miraclx

Description

This is a tricky one..

Provided a workspace, with the members foo, bar and syn.

  • foo depends on the local syn at path ../syn
  • bar depends on the public crate syn from crates.io

cargo ws version major will act on all the local crates foo, bar and syn. In this order:

  • Bump the version of the local syn crate.
  • Bump the version of the local foo crate.
    • Update foo's dependency on the local syn crate to the new version.
  • Bump the version of the local bar crate.
    • Update bar's dependency on the public syn crate to the new version of the local crate.

The last tick there is the issue. cargo ws doesn't properly disambiguate between local crates and public ones.

The branch miraclx/crate-conflict is a stage for reproducing this experiment.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions