-
-
Save pbogdan/61122eba24fbcf08877751a39fd7626f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/hydra.rs b/src/hydra.rs | |
index 1cde305..21d7b06 100644 | |
--- a/src/hydra.rs | |
+++ b/src/hydra.rs | |
@@ -342,8 +342,8 @@ impl Fetcher { | |
&'a self, | |
path: &StorePath, | |
) -> Box<dyn Future<Item = Option<FileTree>, Error = Error> + 'a> { | |
- let url_xz = format!("{}/{}.ls.xz", self.cache_url, path.hash()); | |
- let url_generic = format!("{}/{}.ls", self.cache_url, path.hash()); | |
+ let url_xz = format!("{}/{}-{}.ls.xz", self.cache_url, path.hash(), path.name()); | |
+ let url_generic = format!("{}/{}-{}.ls", self.cache_url, path.hash(), path.name()); | |
let name = format!("{}.json", path.hash()); | |
let fetched = self.fetch(url_generic, None).and_then( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment