Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-01 | Move some stuff from `Settings` to a new `FetchSettings`. | John Ericson | |
Starting work on #5638 The exact boundary between `FetchSettings` and `EvalSettings` is not clear to me, but that's fine. First lets clean out `libstore`, and then worry about what, if anything, should be the separation between those two. | |||
2022-02-25 | Remove std::string alias (for real this time) | Eelco Dolstra | |
Also use std::string_view in a few more places. | |||
2022-02-24 | libfetchers: Rename immutable -> locked | Eelco Dolstra | |
This is more consistent with flake terminology. | |||
2022-02-24 | Merge pull request #5342 from Misterio77/add-sourcehut | Théophane Hufschmitt | |
Add support for sourcehut input scheme | |||
2022-02-19 | git fetcher: set locale for rev-parse | Martin Schwaighofer | |
2022-02-19 | git fetcher: distinguish errors more precisely | Martin Schwaighofer | |
2022-02-19 | git fetcher: invoke diff instead of diff-index | Martin Schwaighofer | |
diff-index operates on the view that git has of the working tree, which might be outdated. The higher-level diff command does this automatically. This change also adds handling for submodules. fixes #4140 Alternative fixes would be invoking update-index before diff-index or matching more closely what require_clean_work_tree from git-sh-setup.sh does, but both those options make it more difficult to reason about correctness. | |||
2022-02-19 | git fetcher: improve check for valid repository | Martin Schwaighofer | |
The .git/refs/heads directory might be empty for a valid usable git repository. This often happens in CI environments, which might only fetch commits, not branches. Therefore instead we let git itself check if HEAD points to something that looks like a commit. fixes #5302 | |||
2022-02-16 | InputScheme::fetch(): Return a StorePath instead of a Tree | Eelco Dolstra | |
2022-02-14 | add sourcehut input scheme | Gabriel Fontes | |
2022-01-18 | Get rid of std::shared_ptr<std::string> and ref<std::string> | Eelco Dolstra | |
These were needed back in the pre-C++11 era because we didn't have move semantics. But now we do. | |||
2021-12-03 | Add support for .tar.gz shorthand (.tgz) to TarballInputScheme | Connor Baker | |
2021-12-01 | Fix parent path check boundary | David Arnold | |
- Previous to this commit the boundary was exclusive of the top level flake. - This is wrong since the top level flake is still a valid relative reference. - Now, the check boundary is inclusive of the top level flake. Signed-off-by: Timothy DeHerrera <tim.deh@pm.me> | |||
2021-11-16 | Merge pull request #5452 from Kha/git-extend-lock | Eelco Dolstra | |
git: extend cache dir lock over all mutating operations | |||
2021-11-14 | libfetchers: set free gitlab headers | Finn Behrens | |
2021-11-01 | git: extend cache dir lock over all mutating operations | Sebastian Ullrich | |
2021-10-26 | Support building flakes from a Git repo url with submodules query parameter | Timothy | |
2021-09-24 | Explicitly set initial branch name for git | oxalica | |
2021-09-22 | Revert "Merge pull request #4922 from nrdxp/default-submodules" | Eelco Dolstra | |
This reverts commit 6678e98411cd3bfe8143a4ba1b35d1451babce32, reversing changes made to 90b2dd570cbd8313a8cf45b3cf66ddef2bb06e07. | |||
2021-09-21 | Allow relative paths anywhere into the parent's store path | Eelco Dolstra | |
2021-09-21 | path fetcher: Fix relative path check | Eelco Dolstra | |
2021-09-14 | Rename unnecessary git@ | Eelco Dolstra | |
2021-09-14 | github fetcher: Don't use HEAD branch when cloning | Eelco Dolstra | |
Fixes #4394. | |||
2021-09-14 | github fetcher: Use git+https for cloning | Eelco Dolstra | |
git+ssh only works if you have SSH access. | |||
2021-09-14 | Fix macOS build | Eelco Dolstra | |
2021-09-13 | RunOptions: Use designated initializers | Eelco Dolstra | |
Also get rid of _killStderr because it wasn't actually checked anywhere. | |||
2021-09-13 | Remove tabs | Eelco Dolstra | |
2021-09-07 | Merge pull request #4922 from nrdxp/default-submodules | Shea Levy | |
libfetchers/git: fetch submodules by default | |||
2021-08-30 | Merge pull request #5175 from Pamplemousse/make | Eelco Dolstra | |
Don't overwrite user provided `lib*_LDFLAGS` | |||
2021-08-25 | Don't overwrite user provided `lib*_LDFLAGS` | Pamplemousse | |
Signed-off-by: Pamplemousse <xav.maso@gmail.com> | |||
2021-08-23 | Coding style | Eelco Dolstra | |
2021-08-17 | Fix follows paths in subordinate lockfiles | Alex Zero | |
2021-08-02 | fix git init race condition | Michael Fellinger | |
2021-07-24 | Enable pthreads for new libraries | Alyssa Ross | |
Otherwise the lack of pthread causes linking to fail for NetBSD. | |||
2021-07-08 | Merge pull request #4988 from NixOS/fetchgit-name-attribute | Eelco Dolstra | |
Add a name attribute to the fetchers | |||
2021-07-07 | Style tweaks | Eelco Dolstra | |
2021-07-06 | allow fetchFromGitHub to take a `name` argument | regnat | |
2021-07-06 | allow fetchMercurial to take a `name` argument | regnat | |
2021-07-06 | allow fetchTarball to take a `name` argument | regnat | |
2021-07-06 | Allow `fetchGit` to take a `name` argument | regnat | |
Fix #3388 | |||
2021-06-30 | nix registry pin: add a way to pin to a custom locked | Alexander Bantyev | |
2021-06-17 | libfetchers/git: fetch submodules by default | Timothy DeHerrera | |
2021-06-02 | fix error: 'optional' in namespace 'std' does not name a template type | keke | |
2021-05-29 | Add .tar.zst support for TarballInputScheme | Timothy Klim | |
2021-04-19 | Include sys/wait.h everywhere WIFEXITED etc is used | Alyssa Ross | |
This is required on NetBSD, and I think FreeBSD too. | |||
2021-04-09 | Revert "libfetchers/tarball: Lock on effectiveUrl" | Eelco Dolstra | |
This reverts commit fc6bfb261d50102016ed812ecf9949d41fe539f7. Fixes #4672. | |||
2021-03-30 | fetchGit: don't prefix "refs/heads/" on ref = "HEAD" | Bjørn Forsman | |
This fixes builtins.fetchGit { url = ...; ref = "HEAD"; }, that works in stable nix (v2.3.10), but is broken in nix master: $ ./result/bin/nix repl Welcome to Nix version 2.4pre19700101_dd77f71. Type :? for help. nix-repl> builtins.fetchGit { url = "https://github.com/NixOS/nix"; ref = "HEAD"; } fetching Git repository 'https://github.com/NixOS/nix'fatal: couldn't find remote ref refs/heads/HEAD error: program 'git' failed with exit code 128 The documentation for builtins.fetchGit says ref = "HEAD" is the default, so it should also be supported to explicitly pass it. I came across this issue because poetry2nix can use ref = "HEAD" in some situations. Fixes #4674. | |||
2021-03-19 | Use the appropriate config dir for the registry | Samuel Dionne-Riel | |
2021-03-11 | Merge pull request #4566 from orbekk/master | Eelco Dolstra | |
Add support for bare git repositories when using git+file | |||
2021-03-02 | libfetchers/tarball: Lock on effectiveUrl | dramforever | |
Basically, if a tarball URL is used as a flake input, and the URL leads to a redirect, the final redirect destination would be recorded as the locked URL. This allows tarballs under https://nixos.org/channels to be used as flake inputs. If we, as before, lock on to the original URL it would break every time the channel updates. |