cargo started storing its data somewhere new

The new location makes a lot more *sense* (previously the
cache said 'git' when it was actually crates.io) but
it broke the verifier. This is now fixed.
This commit is contained in:
bunnie 2023-07-04 11:27:02 +08:00
parent 5d34ffccbf
commit 2f58137e29

View file

@ -39,7 +39,7 @@ pub fn verify(spec: CrateSpec) -> Result<(), DynError> {
let path = entry.path();
// this should *really* exist if the build system is stable, so just unwrap all the things
let regdir = path.file_name().unwrap().to_str().unwrap().to_string();
if regdir.contains("git") { // crates.io sticks sources in something with git yadda yadda...docs don't really say what/why/how...
if regdir.contains("crates.io") { // crates.io sticks sources in something with git yadda yadda...docs don't really say what/why/how...
cache_leaf.push_str(&regdir);
}
}