Skip to content

Commit

Permalink
Fix archive paths for test packages in the alternative registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem committed Jun 10, 2024
1 parent 421656a commit beb929e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/cargo-test-support/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,12 @@ impl Package {
/// Returns the path to the compressed package file.
pub fn archive_dst(&self) -> PathBuf {
if self.local {
registry_path().join(format!("{}-{}.crate", self.name, self.vers))
let path = if self.alternative {
alt_registry_path()
} else {
registry_path()
};
path.join(format!("{}-{}.crate", self.name, self.vers))
} else if self.alternative {
alt_dl_path()
.join(&self.name)
Expand Down

0 comments on commit beb929e

Please sign in to comment.