Skip to content

Commit cc25c3a

Browse files
committed
Fix archive paths for test packages in the alternative registry
1 parent 2e21f75 commit cc25c3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,12 @@ impl Package {
16491649
/// Returns the path to the compressed package file.
16501650
pub fn archive_dst(&self) -> PathBuf {
16511651
if self.local {
1652-
registry_path().join(format!("{}-{}.crate", self.name, self.vers))
1652+
let path = if self.alternative {
1653+
alt_registry_path()
1654+
} else {
1655+
registry_path()
1656+
};
1657+
path.join(format!("{}-{}.crate", self.name, self.vers))
16531658
} else if self.alternative {
16541659
alt_dl_path()
16551660
.join(&self.name)

0 commit comments

Comments
 (0)