Skip to content

Release steps say to remove path deps #7832

@Darksonn

Description

@Darksonn

We used to remove path dependencies in the Cargo.toml when releasing a crate. This was to ensure that the released crate does not depend on unreleased changes in other crates, as removing the path dependency makes CI compile it using the crates.io version of the dependency.

However, we've stopped doing this, and the big reason is that it doesn't work anymore. CI triggers errors such as this one when you try it:

error: There are multiple `tokio` packages in your project, and the specification `tokio` is ambiguous.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  file:///home/runner/work/tokio/tokio/tokio#1.49.0
  https://github.com/rust-lang/crates.io-index#[email protected]
Error: Process completed with exit code 101.

We should either fix CI so that we can continue doing it, or we should remove this instruction from the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ciArea: The continuous integration setupA-readmeArea: Documentation that isn't part of any crate such as README.md or CONTRIBUTING.mdT-docsTopic: documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions