aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPuck Meerburg <puck@puckipedia.com>2024-04-20 13:08:42 +0000
committerPuck Meerburg <puck@puckipedia.com>2024-04-21 10:46:05 +0000
commit272c2ff15f40a0979c2509261e4843090cdddb92 (patch)
tree5deef910542e67f456462e7021951074ec302498 /src
parent111db8b38fd8350d92d72fa17fd3d9e8ef5a0e09 (diff)
remove extraneous cache entry from github fetcher
This isn't necessary, as it's already covered by the tarball fetcher's cache. Change-Id: I85e35f5a61594f27b8f30d82145f92c5d6559e1f
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/github.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc
index 291f457f0..6f997885d 100644
--- a/src/libfetchers/github.cc
+++ b/src/libfetchers/github.cc
@@ -195,32 +195,12 @@ struct GitArchiveInputScheme : InputScheme
input.attrs.erase("ref");
input.attrs.insert_or_assign("rev", rev->gitRev());
- Attrs lockedAttrs({
- {"type", "git-tarball"},
- {"rev", rev->gitRev()},
- });
-
- if (auto res = getCache()->lookup(store, lockedAttrs)) {
- input.attrs.insert_or_assign("lastModified", getIntAttr(res->first, "lastModified"));
- return {std::move(res->second), input};
- }
-
auto url = getDownloadUrl(input);
auto result = downloadTarball(store, url.url, input.getName(), true, url.headers);
input.attrs.insert_or_assign("lastModified", uint64_t(result.lastModified));
- getCache()->add(
- store,
- lockedAttrs,
- {
- {"rev", rev->gitRev()},
- {"lastModified", uint64_t(result.lastModified)}
- },
- result.tree.storePath,
- true);
-
return {result.tree.storePath, input};
}
};