Skip to content

Failure to resolve a package name when used together with other packages #9856

Open
@kvark

Description

@kvark

Problem

In a modified Gecko project, doing cargo test -p foo -p bar fails to resolve one of the packages:
At the same time, doing cargo test -p foo and cargo test -p bar independently sees either package just fine.

kvark@ant /mnt/code/firefox/_webgpu $ cargo test -p qcms -p selectors -vv
    Updating git submodule `https://github.com/AOMediaCodec/av1-avif.git`
error: package ID specification `selectors` did not match any packages

kvark@ant /mnt/code/firefox/_webgpu $ cargo test -p qcms
   Compiling qcms v0.2.0 (/mnt/code/firefox/_webgpu/gfx/qcms)
...
kvark@ant /mnt/code/firefox/_webgpu $ cargo test -p selectors
   Compiling syn v1.0.73
...

Steps

  1. Check out Gecko: git clone https://github.com/mozilla/gecko-dev
  2. Add resolver = "2" to the root Cargo.toml
  3. Run cargo test -p qcms -p selectors

Possible Solution(s)
I don't know why it fails to locate packages

Notes

Output of cargo version: cargo 1.53.0 (4369396ce 2021-04-27)

What I find especially sad here is the lack of any output. Even with "-vv" option and RUST_LOG=trace, cargo prints nothing before declaring that a package isn't found. It's just annoying/hard to debug this as a user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dependency-resolutionArea: dependency resolution and the resolverA-workspacesArea: workspacesC-bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions