Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-03 | Merge remote-tracking branch 'obsidian/no-hash-type-unknown' into ↵ | John Ericson | |
validPathInfo-ca-proper-datatype | |||
2020-06-02 | Remove `HashType::Unknown` | John Ericson | |
Instead, `Hash` uses `std::optional<HashType>`. In the future, we may also make `Hash` itself require a known hash type, encoraging people to use `std::optional<Hash>` instead. | |||
2020-06-01 | Merge branch 'derivation-header-include-order' of github.com:Ericson2314/nix ↵ | Carlo Nucera | |
into validPathInfo-ca-proper-datatype | |||
2020-06-01 | Merge branch 'no-stringly-typed-derivation-output' of ↵ | Carlo Nucera | |
github.com:Ericson2314/nix into validPathInfo-ca-proper-datatype | |||
2020-05-28 | Fixing the result of merge | Carlo Nucera | |
2020-05-28 | Merge branch 'master' of github.com:NixOS/nix into enum-class | Carlo Nucera | |
2020-05-28 | Merge remote-tracking branch 'me/more-rust-ffi' into ↵ | John Ericson | |
no-stringly-typed-derivation-output | |||
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 'john-ericson/enum-FileIngestionMethod' into ↵ | Carlo Nucera | |
no-stringly-typed-derivation-output | |||
2020-05-26 | Merge remote-tracking branch 'origin/master' into enum-FileIngestionMethod | Carlo Nucera | |
2020-05-04 | Flag: Use designated initializers | Eelco Dolstra | |
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-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 | Store parsed hashes in `DerivationOutput` | John Ericson | |
It's best to detect invalid data as soon as possible, with data types that make storing it impossible. | |||
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 | |||
2020-03-29 | Link to stdc++fs | Julian Stecklina | |
Some platforms seem to still require linking with stdc++fs to enable STL std::filesystem support. | |||
2020-03-29 | Rename fetchGit fetchSubmodules to just submodules | Julian Stecklina | |
2020-03-29 | Add git submodule fixes from @bjornfor | Julian Stecklina | |
This fixes fetching repositories with no submodules and also cleans up .git files in checkouts. | |||
2020-03-29 | Add fetchSubmodules to builtins.fetchGit | Julian Stecklina | |
There are some downsides to this features: - Submodules are not cached (unlike the root repo), - Full checkouts are created in a temporary directory. | |||
2020-03-29 | Replace some `bool recursive` with a new `FileIngestionMethod` enum | John Ericson | |
2020-03-29 | Use `enum struct` and drop prefixes | John Ericson | |
This does a few enums; the rest will be gotten in subsequent commits. |