Skip to content

Instantly share code, notes, and snippets.

@pbogdan
Created August 7, 2020 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbogdan/61122eba24fbcf08877751a39fd7626f to your computer and use it in GitHub Desktop.
Save pbogdan/61122eba24fbcf08877751a39fd7626f to your computer and use it in GitHub Desktop.
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