Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-17 | Merge pull request #3707 from p01arst0rm/outdated-function-fix | Eelco Dolstra | |
replaced uncaught_exception with uncaught_exceptions | |||
2020-06-17 | Use `ansicolor.hh` in `nix repl` rather than duplicates | John Ericson | |
2020-06-17 | appended ' __attribute__((weak)); ' to 'extern char * * environ ' | p01arst0rm | |
2020-06-17 | replaced uncaught_exception with uncaught_exceptions | p01arst0rm | |
2020-06-16 | Merge pull request #3702 from NixOS/store-path-cxx | Eelco Dolstra | |
Rewrite StorePath class in C++ | |||
2020-06-16 | Add another missing #include | John Ericson | |
2020-06-16 | StorePath: Rewrite in C++ | Eelco Dolstra | |
On nix-env -qa -f '<nixpkgs>', this reduces maximum RSS by 20970 KiB and runtime by 0.8%. This is mostly because we're not parsing the hash part as a hash anymore (just validating that it consists of base-32 characters). Also, replace storePathToHash() by StorePath::hashPart(). | |||
2020-06-16 | Fix logging unit tests | Tobias Pflug | |
2020-06-15 | Add mising #include for strerror | John Ericson | |
2020-06-15 | Respect terminal width printing error messages | Eelco Dolstra | |
2020-06-15 | Cleanup | Eelco Dolstra | |
2020-06-15 | Improve "waiting for locks" messages | Eelco Dolstra | |
These are now shown in the progress bar. Closes #3577. | |||
2020-06-15 | Remove trailing whitespace | Eelco Dolstra | |
2020-06-15 | Get rid of explicit ErrorInfo constructors | Eelco Dolstra | |
2020-06-15 | Disambiguate BaseError(Args) constructor | Eelco Dolstra | |
This means that 'throw Error({ ... ErrorInfo ... })' now works. | |||
2020-06-15 | Merge branch 'errors-phase-2' of https://github.com/bburdette/nix | Eelco Dolstra | |
2020-06-12 | Use `std::string_view` in a few more places | John Ericson | |
2020-06-12 | Fix build | Eelco Dolstra | |
2020-06-12 | Merge pull request #3674 from matthewbauer/allow-empty-hash2 | Eelco Dolstra | |
Allow empty hash in derivations | |||
2020-06-12 | Provide base argument to to_string | Matthew Bauer | |
2020-06-12 | Add newHashAllowEmpty helper function | Matthew Bauer | |
This replaces the copy&paste with a helper function in hash.hh. | |||
2020-06-12 | Merge pull request #3670 from gilligan/add-pool-tests | Eelco Dolstra | |
Add tests for pool.hh | |||
2020-06-11 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-06-11 | Merge pull request #3073 from tweag/machine-logs | Eelco Dolstra | |
Add an option to print the logs in a machine-readable format | |||
2020-06-11 | Move names.{cc,hh} to libstore | Eelco Dolstra | |
2020-06-10 | Add tests for pool.hh | Tobias Pflug | |
2020-06-10 | Merge pull request #3655 from zimbatm/hash-encoding-prepare | Eelco Dolstra | |
libutils/hash: remove default encoding | |||
2020-06-08 | Move progress-bar.cc to libmain | regnat | |
Needed so that we can include it as a logger in loggers.cc without adding a dependency on nix This also requires moving names.hh to libutil to prevent a circular dependency between libmain and libexpr | |||
2020-06-08 | Unify the printing of the logs between bar-with-logs and raw | regnat | |
Make the printing of the build logs systematically go through the logger, and replicate the behavior of `no-build-output` by having two different loggers (one that prints the build logs and one that doesn't) | |||
2020-06-08 | Make the logger customisable | regnat | |
Add a new `--log-format` cli argument to change the format of the logs. The possible values are - raw (the default one for old-style commands) - bar (the default one for new-style commands) - bar-with-logs (equivalent to `--print-build-logs`) - internal-json (the internal machine-readable json format) | |||
2020-06-07 | set verbosity levels | Ben Burdette | |
2020-06-06 | Add tests for logging.hh | Tobias Pflug | |
2020-06-04 | add some comments | Ben Burdette | |
2020-06-04 | Make 'nix dev-shell' a deprecated alias for 'nix develop' | Eelco Dolstra | |
2020-06-03 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-06-03 | newline-as-prefix; no final newline in output. | Ben Burdette | |
2020-06-03 | libutils/hash: remove default encoding | zimbatm | |
This will make it easier to reason about the hash encoding and switch to SRI everywhere where possible. | |||
2020-06-03 | Missing `#include <cassert>` in `lru-cache.hh` (#3654) | John Ericson | |
This was a latent bug that just appeared because of the tests that were added. Remember to wait for CI! :) | |||
2020-06-02 | remove extra space in SysErrors | Ben Burdette | |
2020-06-02 | elide the 'ErrorInfo' in logError and logWarning calls | Ben Burdette | |
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 | 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 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
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" |