Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 7be536b

Browse files
committed
Auto merge of #304 - JohnTitor:cargo-0.62.0, r=JohnTitor
Upgrade Cargo to 0.62.0 Address the changes on rust-lang/cargo#10064
2 parents 17b0682 + b7c2c17 commit 7be536b

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Cargo.lock

+2-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2018"
1212
exclude = ["/ci/*", "/.github/*", "/doc"]
1313

1414
[dependencies]
15-
cargo = "0.61"
15+
cargo = "0.62"
1616
crates-io = "0.34" # Keep in sync with version pulled by Cargo
1717
curl = "0.4.43"
1818
env_logger = "0.9"

src/bin/cargo-semver.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,13 @@ impl<'a> WorkInfo<'a> {
456456
) -> Result<WorkInfo<'a>> {
457457
let source = {
458458
let source_id = SourceId::crates_io(config)?;
459-
let mut source = RegistrySource::remote(source_id, &HashSet::new(), config);
459+
let mut source = RegistrySource::remote(source_id, &HashSet::new(), config)?;
460460

461461
debug!("source id loaded: {:?}", source_id);
462462

463463
if !config.offline() {
464464
let _lock = config.acquire_package_cache_lock()?;
465-
source.update()?;
465+
source.invalidate_cache();
466466
}
467467

468468
Box::new(source)

0 commit comments

Comments
 (0)