Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-29 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-05-27 | Rename some variables named “recursive” to “method” | Matthew Bauer | |
This is much less confusing since recursive is no longer a boolean. | |||
2020-05-26 | Merge remote-tracking branch 'origin/master' into enum-FileIngestionMethod | Carlo Nucera | |
2020-05-14 | formatting | Ben Burdette | |
2020-05-13 | formatting and a few minor changes | Ben Burdette | |
2020-05-12 | convert to logWarning format | Ben Burdette | |
2020-05-12 | move pos to the first arg, to indicate its not used in a fmt template | Ben Burdette | |
2020-05-12 | new pos format for more errors | Ben Burdette | |
2020-05-11 | more pos reporting | Ben Burdette | |
2020-05-11 | new format for pos | Ben Burdette | |
2020-05-11 | fixes to merged code | Ben Burdette | |
2020-05-11 | Merge branch 'master' into errors-phase-2 | Ben Burdette | |
2020-05-08 | add pos to errorinfo, remove from hints | Ben Burdette | |
2020-05-04 | Flag: Use designated initializers | Eelco Dolstra | |
2020-05-03 | convert some printError calls to logError | Ben Burdette | |
2020-04-29 | Fix displaying error-position in `builtins.fetch{Tree,Tarball}` | Maximilian Bosch | |
Without dereferencing this pointer, you'd get an error like this: ``` error: unsupported argument 'abc' to 'fetchTarball', at 0x13627e8 ``` | |||
2020-04-29 | uncrustify formatting | Ben Burdette | |
2020-04-22 | a few more 'format's rremoved | Ben Burdette | |
2020-04-21 | remove 'format' from Error constructor calls | Ben Burdette | |
2020-04-18 | Merge pull request #3502 from NixOS/more-pos | Domen Kožar | |
pass Pos to forceValue to improve infinite recursion error | |||
2020-04-16 | Use RootValue | Eelco Dolstra | |
2020-04-16 | JSONSax: Use a RootValue | Eelco Dolstra | |
More #3377. | |||
2020-04-16 | ValueMap, VectorVector: Use traceable_allocator | Eelco Dolstra | |
We want to *trace* the 'Value *' arrays, not garbage-collect them! Otherwise the vectors/maps can end up pointing to nowhere. Fixes #3377. Closes #3384. | |||
2020-04-16 | Add function to allocate a Value in traceable memory | Eelco Dolstra | |
2020-04-16 | fetchMercurial: Use inputFromAttrs() | Eelco Dolstra | |
2020-04-16 | pass Pos to forceValue to improve infinite recursion error | Domen Kožar | |
2020-04-11 | Merge pull request #3447 from DavHau/improve-tofile-error-msg | Domen Kožar | |
improve toFile error message when containing potential drv path | |||
2020-04-11 | improve toFile error message when containing potential drv path | DavHau | |
2020-04-09 | Attach pos to if expression errors | Domen Kožar | |
2020-04-08 | after flake rebase | Nikola Knezevic | |
2020-04-08 | datatransfer.{cc,hh} -> filetransfer.{cc,hh} | Nikola Knezevic | |
2020-04-08 | DownloadError -> DataTransferError | Nikola Knezevic | |
2020-04-08 | Rename src/lib/download.* to src/lib/datatransfer.* | Nikola Knezevic | |
2020-04-08 | Merge pull request #3468 from Infinisil/functionArgsPositions | Eelco Dolstra | |
Make function arguments retain position info | |||
2020-04-07 | Merge branch 'fetchgit-recursive' of https://github.com/blitz/nix | Eelco Dolstra | |
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 | libexpr: remove unused attrError | Andreas Rammhold | |
The attrError variable is no longer used but still allocated on every call to the findAlongAttrPath function. | |||
2020-04-02 | Make function arguments retain position info | Silvan Mosberger | |
This allows querying the location of function arguments. E.g. builtins.unsafeGetAttrPos "x" (builtins.functionArgs ({ x }: null)) => { column = 57; file = "/home/infinisil/src/nix/inst/test.nix"; line = 1; } | |||
2020-03-30 | s/outputHashRecursive/ingestionMethod/c | John Ericson | |
2020-03-30 | Never cast `FileIngestionMethod` to or from boolean | John Ericson | |
2020-03-30 | Merge remote-tracking branch 'upstream/master' into enum-FileIngestionMethod | John Ericson | |
2020-03-30 | Use `auto` with some `FileIngestionMethod` local variables | John Ericson | |
2020-03-30 | Remove global -I flags | Eelco Dolstra | |
(cherry picked from commit 2c692a3b144523bca68dd6de618124ba6c9bb332) | |||
2020-03-30 | fetchGit: don't use std::filesystem to filter git repos | Julian Stecklina | |
Using std::filesystem means also having to link with -lstdc++fs on some platforms and it's hard to discover for what platforms this is needed. As all the functionality is already implemented as utilities, use those instead. | |||
2020-03-29 | fetchGit: fix submodule corner case by fetching all refs from cacheDir | Bjørn Forsman | |
Due to fetchGit not checking if rev is an ancestor of ref (there is even a FIXME comment about it in the code), the cache repo might not have the ref even though it has the rev. This doesn't matter when submodule = false, but the submodule = true code blows up because it tries to fetch the (missing) ref from the cache repo. Fix this in the simplest way possible: fetch all refs from the local cache repo when submodules = true. TODO: Add tests. | |||
2020-03-29 | fetchGit: fix submodules = true for dirty trees | Bjørn Forsman | |
2020-03-29 | fetchGit: checkout rev instead of latest ref | Bjørn Forsman | |
Major bugfix for the submodules = true code path. TODO: Add tests. | |||
2020-03-29 | fetchGit: add submodules attribute to the .link file | Bjørn Forsman | |
The .link file is used as a lock, so I think we should put the "submodule" attribute in there since turning on submodules creates a new .link file path. | |||
2020-03-29 | fetchGit: fix submodule output attribute | Bjørn Forsman | |
Before this change it would be false for all evaluations but the first. Now it follows the input argument (as it should). | |||
2020-03-29 | fetchGit: fix "fatal: couldn't find remote ref refs/heads/master" issue with ↵ | Bjørn Forsman | |
submodules |