Files
lix/tests
Eelco Dolstra 462421d345 Backport libfetchers from the flakes branch
This provides a pluggable mechanism for defining new fetchers. It adds
a builtin function 'fetchTree' that generalizes existing fetchers like
'fetchGit', 'fetchMercurial' and 'fetchTarball'. 'fetchTree' takes a
set of attributes, e.g.

  fetchTree {
    type = "git";
    url = "https://example.org/repo.git";
    ref = "some-branch";
    rev = "abcdef...";
  }

The existing fetchers are just wrappers around this. Note that the
input attributes to fetchTree are the same as flake input
specifications and flake lock file entries.

All fetchers share a common cache stored in
~/.cache/nix/fetcher-cache-v1.sqlite. This replaces the ad hoc caching
mechanisms in fetchGit and download.cc (e.g. ~/.cache/nix/{tarballs,git-revs*}).

This also adds support for Git worktrees (c169ea5904).
2020-04-07 09:03:14 +02:00
..
2020-03-30 15:30:19 +02:00
2019-12-13 19:05:26 +01:00
2018-08-06 14:06:54 +02:00
2017-05-02 15:46:10 +02:00
2014-08-21 21:50:19 +02:00
2019-08-02 10:48:15 -04:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2018-01-16 19:23:18 +01:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2019-09-04 12:52:54 +02:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2019-03-10 01:50:33 +01:00
2006-07-21 13:21:43 +00:00
2018-12-13 14:30:52 +01:00
2019-07-25 09:44:01 -04:00
2014-08-21 21:50:19 +02:00
2019-12-10 13:37:23 +01:00
2018-02-13 14:26:19 +00:00
2019-11-05 11:12:25 +01:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2019-11-26 20:12:15 +01:00
2019-11-05 11:12:25 +01:00
2018-01-16 19:23:18 +01:00
2017-11-20 18:36:36 +01:00
2018-02-25 16:40:05 -06:00
2016-04-11 16:20:15 +02:00
2019-11-05 11:12:25 +01:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2019-07-02 11:18:36 -04:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00