Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-12 | Use `std::string_view` in a few more places | John Ericson | |
2020-06-09 | Fix applyOverride() for github | Eelco Dolstra | |
2020-06-04 | getDefaultUrl() -> value_or() | Eelco Dolstra | |
2020-06-04 | add support for selfhosted gitlab/github | Finn Behrens | |
2020-06-01 | use Tree ctor | Matthew Kenigsberg | |
2020-05-30 | Check revCount / lastModified input attributes if specified | Eelco Dolstra | |
2020-05-30 | Remove TreeInfo | Eelco Dolstra | |
The attributes previously stored in TreeInfo (narHash, revCount, lastModified) are now stored in Input. This makes it less arbitrary what attributes are stored where. As a result, the lock file format has changed. An entry like "info": { "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github" }, is now stored as "locked": { "owner": "NixOS", "repo": "nixpkgs", "rev": "b88ff468e9850410070d4e0ccd68c7011f15b2be", "type": "github", "lastModified": 1585405475, "narHash": "sha256-bESW0n4KgPmZ0luxvwJ+UyATrC6iIltVCsGdLiphVeE=" }, The 'Input' class is now a dumb set of attributes. All the fetcher implementations subclass InputScheme, not Input. This simplifies the API. Also, fix substitution of flake inputs. This was broken since lazy flake fetching started using fetchTree internally. | |||
2020-05-29 | Factor out GitHub / GitLab commonality | Eelco Dolstra | |
2020-04-09 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-04-08 | after flake rebase | Nikola Knezevic | |
2020-04-07 | Respect the narHash attribute in more input types | Eelco Dolstra | |
(cherry picked from commit a6ff66b658b61aef80d936f0183447fe4cb46000) | |||
2020-04-07 | Backport libfetchers from the flakes branch | Eelco Dolstra | |
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 (c169ea59049f861aaba429f48b828d0820b74d1d). | |||
2020-04-02 | Respect the narHash attribute in more input types | Eelco Dolstra | |
call-flake.nix now passes node.info.narHash to fetchTree. This ensures that dirty Git trees work even in pure mode. | |||
2020-03-30 | Move fetchers from libstore to libfetchers | Eelco Dolstra | |