Skip to content

Make tidy reject duplicate crates with same version number & different source #14695

Closed

Description

@SimonSapin

Before #14633, we were compiling two copies of the freetype crate. ./mach test-tidy has a lint to prevent that from happening, but it didn’t in this case. I’m guessing this is because both copies had the same version number. But Cargo still considers them different, and therefore includes them both, because they have different sources: crates.io, and a git repository.

The relevant code is in the check_lock function in python/tidy/servo_tidy/tidy.py.

@Wafflespeanut, @Ms2ger, is there a reason this code considers version numbers at all? Rather than looking for multiple [[package]] sections with the same name.

Activity

  1. added
    L-python
    on Dec 23, 2016
  2. highfive commented on Dec 23, 2016

    @highfive

    cc @wafflespeanut

  3. added a commit that references this issue on Dec 26, 2016
    37a5e29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions