Hi have my root Cargo.toml setup as follows:
[patch.crates-io]
byteorder = { version = "=1.3.4", git = "https://github.com/BurntSushi/byteorder.git", tag = "1.3.4" }
bitflags = { version = "=1.2.1", git = "https://github.com/bitflags/bitflags.git", tag = "1.2.1" }
memchr = { version = "=2.3.3", git = "https://github.com/BurntSushi/memchr", tag = "2.3.3" }
when I am running in my docker build
RUN . /root/.cargo/env && \
rustup toolchain install nightly-2020-10-01 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01
(it's an old repo)
it is updating the crates.io index
=> => # Updating git repository `https://github.com/bitflags/bitflags.git`
=> => # Updating git repository `https://github.com/BurntSushi/byteorder.git`
=> => # Updating git repository `https://github.com/rust-lang/log`
=> => # Updating git repository `https://github.com/BurntSushi/memchr`
=> => # Updating crates.io index
But apparently it's still downloading newer dependencies.
192.5 Downloaded byteorder v1.5.0
192.5 error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.5.0/Cargo.toml`
192.5
192.5 Caused by:
192.5 failed to parse the `edition` key
192.5
192.5 Caused by:
192.5 this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
192.5 warning: build failed, waiting for other jobs to finish...
196.8 error: build failed
- How is this possible? Is there a way that I can surely override dependencies for my build?
Thanks