Skip to content

Commit 03ebfb9

Browse files
authored
fix: support sparse registries (#422)
1 parent 156fc07 commit 03ebfb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo_ops/temp_project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl<'tmp> TempProject<'tmp> {
395395
let _lock = ws_context.acquire_package_cache_lock(CacheLockMode::DownloadExclusive)?;
396396
let source_config = SourceConfigMap::new(ws_context)?;
397397
let mut source = source_config.load(source_id, &HashSet::new())?;
398-
if !source_id.is_crates_io() {
398+
if !source_id.is_crates_io() && !source_id.is_sparse() {
399399
source.invalidate_cache();
400400
}
401401
source.block_until_ready()?;

0 commit comments

Comments
 (0)