forked from lix-project/lix
fetchFlake: Use infinite TTL when the revision is specified
This commit is contained in:
parent
529add316c
commit
d342de02b9
|
@ -113,7 +113,8 @@ static FlakeSourceInfo fetchFlake(EvalState & state, const FlakeRef & flakeRef)
|
||||||
? *refData->ref
|
? *refData->ref
|
||||||
: "master");
|
: "master");
|
||||||
|
|
||||||
auto result = getDownloader()->downloadCached(state.store, url, true, "source");
|
auto result = getDownloader()->downloadCached(state.store, url, true, "source",
|
||||||
|
Hash(), nullptr, refData->rev ? 1000000000 : settings.tarballTtl);
|
||||||
|
|
||||||
if (!result.etag)
|
if (!result.etag)
|
||||||
throw Error("did not receive an ETag header from '%s'", url);
|
throw Error("did not receive an ETag header from '%s'", url);
|
||||||
|
|
Loading…
Reference in a new issue