Open
Description
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
- Check out Gecko:
git clone https://github.com/mozilla/gecko-dev
- Add
resolver = "2"
to the rootCargo.toml
- 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.