Closed
Description
Problem
Hi, maintainer of Kellnr here.
While updating the dependencies of Kellnr, I ran into an issue with the cargo dependency. No code was changed, just an update from cargo 0.76 to 0.77. Before the update, everything works fine, after the update the following error occurs:
error[E0425]: cannot find function `du` in crate `cargo_util`
--> /Users/x/.cargo/registry/src/kellnr-dev.raspi.home-1baa2a94dc16fc7f/cargo-0.77.0/src/cargo/core/global_cache_tracker.rs:1212:36
|
1212 | let size = cargo_util::du(&base.git_db.join(&info.3), &[])?;
| ^^ not found in `cargo_util`
|
help: consider importing this function
|
117 + use crate::core::global_cache_tracker::du;
|
help: if you import `du`, refer to it directly
|
1212 - let size = cargo_util::du(&base.git_db.join(&info.3), &[])?;
1212 + let size = du(&base.git_db.join(&info.3), &[])?;
|
error[E0425]: cannot find function `du` in crate `cargo_util`
--> /Users/x/.cargo/registry/src/kellnr-dev.raspi.home-1baa2a94dc16fc7f/cargo-0.77.0/src/cargo/core/global_cache_tracker.rs:1818:17
|
1818 | cargo_util::du(&path, &["!.git"])
| ^^ not found in `cargo_util`
error[E0425]: cannot find function `du` in crate `cargo_util`
--> /Users/x/.cargo/registry/src/kellnr-dev.raspi.home-1baa2a94dc16fc7f/cargo-0.77.0/src/cargo/core/global_cache_tracker.rs:1825:21
|
1825 | cargo_util::du(&path, &[])
| ^^ not found in `cargo_util`
Checking migration v0.1.0 (/Users/x/repos/kellnr/kellnr/crates/db/migration)
For more information about this error, try `rustc --explain E0425`.
error: could not compile `cargo` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
Steps
- Checkout git@github.com:kellnr/kellnr.git
- Upgrade from cargo 0.76 to 0.77
- Compile -> See error above
Possible Solution(s)
Revert to cargo 0.76
Notes
No response
Version
cargo 1.76.0 (c84b36747 2024-01-18)
release: 1.76.0
commit-hash: c84b367471a2db61d2c2c6aab605b14130b8a31b
commit-date: 2024-01-18
host: aarch64-apple-darwin
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.4.0 (sys:0.4.70+curl-8.5.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Mac OS 14.3.1 [64-bit]