aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-06-08Add compression unit testsTobias Pflug
2020-06-08Unify the printing of the logs between bar-with-logs and rawregnat
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-08Make the logger customisableregnat
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-07set verbosity levelsBen Burdette
2020-06-06Remove error-demo/error-demo.ccTobias Pflug
The logging.hh superseeds the demo
2020-06-06Add tests for logging.hhTobias Pflug
2020-06-05Merge pull request #3656 from obsidiansystems/handle-unknown-file-ingestionEelco Dolstra
Add error message when FileIngestionMethod is out of bounds
2020-06-05Fix log-prefix of `nix build -L`Eelco Dolstra
Alternative fix to #3661. The cause was that 'name' is a std::string_view into a temporary which could get overwritten.
2020-06-04Fix condition error and make test suite passCarlo Nucera
2020-06-04Merge remote-tracking branch 'upstream/master' into ↵John Ericson
no-stringly-typed-derivation-output
2020-06-04Remove file which shouldn't be committedJohn Ericson
2020-06-04Use `readString` rather than `>> temporary`John Ericson
Fixed the rest of these before, but this one slipped through.
2020-06-04Merge branch 'master' of github.com:NixOS/nix into ↵John Ericson
validPathInfo-ca-proper-datatype
2020-06-04Flip booleanJohn Ericson
Thanks Matt!
2020-06-04Use some `std::optional::has_value` for clarityJohn Ericson
2020-06-04Make sure info.ca tag bit is set in `nix add-to-store`John Ericson
2020-06-04add some commentsBen Burdette
2020-06-04Add error message when FileIngestionMethod is out of boundsMatthew Bauer
bool coerces anything >0 to true, but in the future we may have other file ingestion methods. This shows a better error message when the “recursive” byte isn’t 1.
2020-06-04Make 'nix dev-shell' a deprecated alias for 'nix develop'Eelco Dolstra
2020-06-04Rename 'nix dev-shell' to 'nix develop'Eelco Dolstra
Fixes #3648.
2020-06-03No C++ designated initializers yet with Clang 7John Ericson
2020-06-03Merge remote-tracking branch 'upstream/master' into errors-phase-2Ben Burdette
2020-06-03newline-as-prefix; no final newline in output.Ben Burdette
2020-06-03Clarify the description of StorePath constructionCarlo Nucera
2020-06-03libutils/hash: remove default encodingzimbatm
This will make it easier to reason about the hash encoding and switch to SRI everywhere where possible.
2020-06-03Missing `#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-03Merge remote-tracking branch 'obsidian/no-hash-type-unknown' into ↵John Ericson
validPathInfo-ca-proper-datatype
2020-06-02Merge remote-tracking branch 'obsidian/missing-include-0' into ↵John Ericson
validPathInfo-ca-proper-datatype
2020-06-02Missing `#include <cassert>` in `lru-cache.hh`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`outputHashAlgo` can be blank so parse accordinglyJohn Ericson
It is blank for SRI hashes.
2020-06-02Fix hashesJohn Ericson
2020-06-02TypoCarlo Nucera
2020-06-02Validate text version instead, throw ErrorsCarlo Nucera
2020-06-02Add assertions for SHA256 in fixed caseCarlo Nucera
2020-06-02Move file-hash to content-addressCarlo Nucera
2020-06-02WIP Completed implementationCarlo Nucera
2020-06-02Fix to-base --type handler to correctly set std::optional flagJohn Ericson
Now that we have a separate flag function, also describe why it is optional.
2020-06-02WIPCarlo Nucera
2020-06-02to-base supports parsing SRI hashes, so make type flag optionalJohn Ericson
2020-06-02Clean up `ValidPathInfo::isContentAddressed` with `std::visit`John Ericson
2020-06-02Apply suggestions from code reviewJohn Ericson
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
2020-06-02Remove `hashingWithUnknownAlgoExits`John Ericson
A valid hash type must be provided now. The hash itself can still be invalid, but that doesn't cause an `abort()`.
2020-06-02Merge remote-tracking branch 'upstream/master' into no-hash-type-unknownJohn Ericson
2020-06-02Remove `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-02Change parseCa(Opt) to parseContentAddress(Opt)Carlo Nucera
2020-06-02remove extra space in SysErrorsBen Burdette
2020-06-02Merge remote-tracking branch 'upstream/master' into ↵John Ericson
validPathInfo-ca-proper-datatype
2020-06-02elide the 'ErrorInfo' in logError and logWarning callsBen Burdette
2020-06-02Merge pull request #3639 from obsidiansystems/do-fixme-store-removesEelco Dolstra
Remove `addToStore` variant as requested by `FIXME`
2020-06-02Merge branch 'lru-tests' of https://github.com/gilligan/nixEelco Dolstra