Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 20, 2024
1 parent cabee98 commit 0b3c2a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libfetchers/tarball.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ struct FileInputScheme : CurlInputScheme
{
auto input(_input);

/* Unlike TarballInputScheme, this stores downloaded files in
the Nix store directly, since there is little deduplication
benefit in using the Git cache for single big files like
tarballs. */
auto file = downloadFile(store, getStrAttr(input.attrs, "url"), input.getName(), false);

auto narHash = store->queryPathInfo(file.storePath)->narHash;
Expand Down

0 comments on commit 0b3c2a8

Please sign in to comment.