You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using --manifest-path, cargo appears to be searching for a .cargo/config starting at the directory cargo build was RUN FROM, rather than the manifest-path location.
Directory structure to repro
.cargo/
config => file containing source config pointing at ./vendor1
vendor1/ => does not haveserde vendored
foo/
bar/
mycrate/ => the crate I am building
.cargo
config => file containing source config pointing at ./vendor2
Cargo.toml => Standard toml file for mycrate
vendor2/ => hasserde vendored
Steps to repro
If I run cargo from a different directory and point manifest-path at mycrate/Cargo.toml, it traverses from pwd and finds the top-level .cargo rather than the one in mycrate.
$ cd foo/bar;
$ cargo build --frozen --release --manifest-path ./mycrate/Cargo.toml
error: no matching package named `serde` found (required by `mycrate`)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: = 0.9.11
If I run the same command from mycrate, everything works:
When using
--manifest-path
, cargo appears to be searching for a.cargo/config
starting at the directorycargo build
was RUN FROM, rather than themanifest-path
location.Directory structure to repro
.cargo/
config
=> file containing source config pointing at./vendor1
vendor1/
=> does not haveserde
vendoredfoo/
bar/
mycrate/
=> the crate I am building.cargo
config
=> file containing source config pointing at./vendor2
Cargo.toml
=> Standard toml file formycrate
vendor2/
=> hasserde
vendoredSteps to repro
If I run cargo from a different directory and point
manifest-path
atmycrate/Cargo.toml
, it traverses frompwd
and finds the top-level.cargo
rather than the one inmycrate
.If I run the same command from
mycrate
, everything works:The text was updated successfully, but these errors were encountered: