downloadCached: Return ETag

This allows fetchFlake() to return the Git revision of a GitHub
archive.
This commit is contained in:
Eelco Dolstra
2019-02-25 23:20:50 +08:00
parent 6e9182fbc2
commit 529add316c
7 changed files with 64 additions and 26 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ std::pair<bool, std::string> EvalState::resolveSearchPathElem(const SearchPathEl
if (isUri(elem.second)) {
try {
res = { true, getDownloader()->downloadCached(store, elem.second, true) };
res = { true, getDownloader()->downloadCached(store, elem.second, true).path };
} catch (DownloadError & e) {
printError(format("warning: Nix search path entry '%1%' cannot be downloaded, ignoring") % elem.second);
res = { false, "" };