mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
fetchFlake: Use infinite TTL when the revision is specified
This commit is contained in:
parent
529add316c
commit
d342de02b9
1 changed files with 2 additions and 1 deletions
|
@ -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