nix-super/src/libfetchers
Eelco Dolstra a8fe0dc16c Speed up fetching submodules
Previously we would completely refetch the submodules from the
network, even though the repo might already have them. Now we copy the
.git/modules directory from the repo as an optimisation. This speeds
up evaluating

  builtins.fetchTree { type = "git"; url = "/path/to/blender"; submodules = true; }

(where /path/to/blender already has the needed submodules) from 121s
to 57s.

This is still pretty inefficient and a hack, but a better solution is
best done on the lazy-trees branch.

This change also help in the case where the repo already has the
submodules but the origin is unfetchable for whatever reason
(e.g. there have been cases where Nix in a GitHub action doesn't have
the right authentication set up).
2023-02-07 16:01:36 +01:00
..
attrs.cc Fix conversion from JSON to fetch attributes 2021-01-05 02:06:25 +00:00
attrs.hh fix error: 'optional' in namespace 'std' does not name a template type 2021-06-02 18:09:03 +08:00
cache.cc libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
cache.hh libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
fetch-settings.cc Move some stuff from Settings to a new FetchSettings. 2022-03-01 01:39:25 +00:00
fetch-settings.hh Allow to disable global flake-registry with "" 2022-12-12 15:32:02 +01:00
fetchers.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
fetchers.hh Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
git.cc Speed up fetching submodules 2023-02-07 16:01:36 +01:00
github.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
indirect.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
local.mk Don't overwrite user provided lib*_LDFLAGS 2021-08-25 08:59:19 -07:00
mercurial.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
path.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
registry.cc Allow to disable global flake-registry with "" 2022-12-12 15:32:02 +01:00
registry.hh Style tweaks 2021-07-07 10:02:55 +02:00
tarball.cc Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00