Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-16 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-13 | Fix gitlab-fetcher to obtain tags and branches | Maximilian Bosch | |
Until now, the `gitlab`-fetcher determined the source's rev by checking the latest commit of the given `ref` using the `/repository/branches`-API. This breaks however when trying to fetch a gitlab-repo by its tag: ``` $ nix repl nix-repl> builtins.fetchTree gitlab:Ma27/nvim.nix/0.2.0 error: --- Error ------------------------------------------------------------------------------------- nix unable to download 'https://gitlab.com/api/v4/projects/Ma27%2Fnvim.nix/repository/branches/0.2.0': HTTP error 404 ('') ``` When using the `/commits?ref_name`-endpoint[1] you can pass any kind of valid ref to the `gitlab`-fetcher. Please note that this fetches the only first 20 commits on a ref, unfortunately there's currently no endpoint which only retrieves the latest commit of any kind of `ref`. [1] https://docs.gitlab.com/ee/api/commits.html#list-repository-commits | |||
2020-07-01 | Rename two hash constructors to proper functions | Carlo Nucera | |
2020-06-18 | github: Respect default branch | Eelco Dolstra | |
2020-06-17 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
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 | |