Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-03 | Don't anticipate multiple CA outputs for now | John Ericson | |
2020-06-03 | Don't anticipate CA but not fixed outputs for now | John Ericson | |
2020-06-03 | Use enum and predicates rather than bitfile for derivation type | John Ericson | |
2020-06-03 | Merge remote-tracking branch 'upstream/master' into ca-drv | John Ericson | |
2020-06-02 | Merge pull request #3639 from obsidiansystems/do-fixme-store-removes | Eelco Dolstra | |
Remove `addToStore` variant as requested by `FIXME` | |||
2020-06-02 | Merge branch 'lru-tests' of https://github.com/gilligan/nix | Eelco Dolstra | |
2020-06-02 | src/libutil/tests/lru-cache.cc: Check erase() | Eelco Dolstra | |
Co-authored-by: James Lee <jbit@jbit.net> | |||
2020-05-31 | Add tests for lru-cache.hh | Tobias Pflug | |
2020-05-30 | Ensure we restrict refspec interpretation while fetching | Nikola Knezevic | |
As `git fetch` may chose to interpret refspec to it's liking, ensure that we only pass refs that begin with `refs/` as is, otherwise, prepend them with `refs/heads`. Otherwise, branches named `heads/foo` (I know it's bad, but it's allowed), would be fetched as `foo`, instead of `heads/foo`. | |||
2020-05-30 | Improve ref validity checking in fetchGit | Nikola Knezevic | |
The previous regex was too strict and did not match what git was allowing. It could lead to `fetchGit` not accepting valid branch names, even though they exist in a repository (for example, branch names containing `/`, which are pretty standard, like `release/1.0` branches). The new regex defines what a branch name should **NOT** contain. It takes the definitions from `refs.c` in https://github.com/git/git and `git help check-ref-format` pages. This change also introduces a test for ref name validity checking, which compares the result from Nix with the result of `git check-ref-format --branch`. | |||
2020-05-29 | Remove addToStore variant as requested by `FIXME` | John Ericson | |
The idea is it's always more flexible to consumer a `Source` than a plain string, and it might even reduce memory consumption. I also looked at `addToStoreFromDump` with its `// FIXME: remove?`, but the worked needed for that is far more up for interpretation, so I punted for now. | |||
2020-05-28 | Merge pull request #3631 from andir/libutil-config-tests | Eelco Dolstra | |
Add unit tests for config.cc | |||
2020-05-28 | Merge pull request #3455 from Ericson2314/enum-FileIngestionMethod | Eelco Dolstra | |
Replace some `bool recursive` with a new `FileIngestionMethod` enum | |||
2020-05-27 | Use `FileIngestionMethod` for `nix hash` | John Ericson | |
There was an enum there that matched in perfectly. | |||
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-27 | Don’t use FileIngestionMethod for StorePathsCommand | Matthew Bauer | |
This is a different recursive than used in makeFixedOutputPath. | |||
2020-05-27 | config.hh: Add documentation | Andreas Rammhold | |
Provides some general overview on the mechanics of Config/Setting and comments for the public methods of Config. | |||
2020-05-27 | tests/config.cc: add tests for Config::applyConfig | Andreas Rammhold | |
2020-05-27 | config.cc: extract parts of applyConfigFile into applyConfig | Andreas Rammhold | |
This moves the actual parsing of configuration contents into applyConfig which applyConfigFile is then going to call. By changing this we can now test the configuration file parsing without actually create a file on disk. | |||
2020-05-27 | Add unit tests for config.cc | Andreas Rammhold | |
2020-05-27 | Merge pull request #3621 from gilligan/add-json-tests | Eelco Dolstra | |
Add unit tests for "json.hh" | |||
2020-05-27 | Merge pull request #3625 from gilligan/xml-writer-tests | Eelco Dolstra | |
Add unit tests for xml-writer | |||
2020-05-26 | Change remaining bools with FileIngestionMethod | Carlo Nucera | |
2020-05-26 | Merge remote-tracking branch 'origin/master' into enum-FileIngestionMethod | Carlo Nucera | |
2020-05-25 | Add unit tests for xml-writer | Tobias Pflug | |
2020-05-25 | Add unit tests for "json.hh" | Tobias Pflug | |
2020-05-25 | Add unit tests for hashing functions | Tobias Pflug | |
2020-05-20 | Add unit testes for url.cc | Tobias Pflug | |
This adds tests for - parseURL - percentDecode - decodeQuery | |||
2020-05-18 | Cleanup | Eelco Dolstra | |
2020-05-18 | Merge branch 'wait-for-builders' of https://github.com/serokell/nix | Eelco Dolstra | |
2020-05-14 | Don't lock a user while doing remote builds | Alexander Bantyev | |
2020-05-12 | Show hint how to enable experimental features | Eelco Dolstra | |
2020-05-12 | nix: Don't require --experimental-features=nix-command for some subcommands | Eelco Dolstra | |
2020-05-11 | Merge pull request #3568 from kolloch/outputHashModeError | Domen Kožar | |
libstore/build.cc: more explicit error about form of output | |||
2020-05-11 | Update src/libstore/build.cc | Domen Kožar | |
2020-05-09 | doc: consistently refer to 'fixed-output' with a dash | Benjamin Hipple | |
General cleanup that makes it easier to search for the term. | |||
2020-05-08 | Merge pull request #3571 from gilligan/nix-unit-testing | Eelco Dolstra | |
Add unit tests | |||
2020-05-08 | Enable toLower umlauts test | Tobias Pflug | |
Update comment and enable the test | |||
2020-05-08 | Enable `baseNameOf` test | Tobias Pflug | |
Add note about removal of trailing slashes in the doc comment of baseNameOf and enabled the test. | |||
2020-05-08 | Enable `dirOf` test | Tobias Pflug | |
Adjusted the doc comment for `dirOf` to reflect the implementation behavior. | |||
2020-05-08 | configure: Look for gtest | Eelco Dolstra | |
2020-05-08 | Don't install unit tests | Eelco Dolstra | |
2020-05-08 | make check: Run unit tests | Eelco Dolstra | |
2020-05-08 | Fix warning | Eelco Dolstra | |
2020-05-08 | Move unit tests to sr/libutil/tests, use mk make rules | Eelco Dolstra | |
2020-05-08 | Mention build users in the 'waiting for' message | Alexander Bantyev | |
2020-05-08 | Don't block while waiting for build users | Alexander Bantyev | |
2020-05-07 | Remove replaceInSet | Tobias Pflug | |
The function isn't being used anywhere so it seems safe to remove | |||
2020-05-06 | Merge pull request #3570 from Mic92/nix-search | Domen Kožar | |
nix/search: no error for empty search results if json is enabled | |||
2020-05-06 | nix/search: no error for empty search results if json is enabled | Jörg Thalheim | |
- result list will be always empty if --json is passed - for scripts an empty search result is not really an error, we rather want to distinguish between evaluation errors and empty results |