Skip to content

Unnecessary index fetching upon patching two dependencies with same package name #13862

Closed
@ldm0

Description

@ldm0

Problem

If you have two patches on two dependencies with same package name, you will see Updating crates.io index every time you run cargo check. The index update is unnecessary and slows down development speed.

Steps

Simple reproduction repo:
https://github.com/ldm0/cargo-bug-repo/tree/31fb297e58ffa3be877062940a300883d2cb580a

  1. Run cargo check
  2. Run cargo check (you will still see Updating crates.io index)

Possible Solution(s)

I'll file a fix PR later.

Notes

No response

Version

Can't find a cargo version which doesn't have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dependency-resolutionArea: dependency resolution and the resolverA-lockfileArea: Cargo.lock issuesC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions