lix/src
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
..
build-remote build-remote: Add brackets to error message 2022-11-04 10:49:44 -07:00
libcmd Merge pull request #7667 from dramforever/flake-search-attr 2023-02-01 15:56:22 +01:00
libexpr Fix clang compilation 2023-02-01 20:34:44 +01:00
libfetchers Speed up fetching submodules 2023-02-07 16:01:36 +01:00
libmain Merge pull request #7203 from graham33/feature/cpp20 2023-02-01 15:41:04 +01:00
libstore Merge pull request #7739 from obsidiansystems/user-settings 2023-02-03 11:55:37 +01:00
libutil Merge pull request #7203 from graham33/feature/cpp20 2023-02-01 15:41:04 +01:00
nix Merge pull request #7739 from obsidiansystems/user-settings 2023-02-03 11:55:37 +01:00
nix-build nix-shell: Colour the prompt red if the user is root 2023-02-01 20:50:44 +00:00
nix-channel Move the default profiles to the user’s home 2023-01-17 14:17:28 +01:00
nix-collect-garbage Add missing rethrows in conditional exception handlers 2022-06-10 10:52:41 -07:00
nix-copy-closure
nix-env Revert "Revert "Merge pull request #6204 from layus/coerce-string"" 2023-01-19 13:23:04 +01:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Fix unused variable warning 2022-12-12 16:41:46 +01:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11