Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-08-08 | tree-wide: fix a pile of lints | Jade Lovelace | |
This: - Converts a bunch of C style casts into C++ casts. - Removes some very silly pointer subtraction code (which is no more or less busted on i686 than it began) - Fixes some "technically UB" that never had to be UB in the first place. - Makes finally follow the noexcept status of the inner function. Maybe in the future we should ban the function from not being noexcept, but that is not today. - Makes various locally-used exceptions inherit from std::exception. Change-Id: I22e66972602604989b5e494fd940b93e0e6e9297 | |||
2024-08-08 | refactor: make HashType and Base enum classes for type safety | Jade Lovelace | |
Change-Id: I9fbd55a9d50464a56fe11cb42a06a206914150d8 | |||
2024-08-08 | build: integrate clang-tidy into CI | Jade Lovelace | |
This still has utterly unacceptably bad output format design that I would not inflict on anyone I like, but it *does* now exist, and you *can* find the errors in the log. Future work would obviously be to fix that and integrate the actual errors into Gerrit using codechecker or so. Followup issue: https://git.lix.systems/lix-project/lix/issues/457 Fixes: https://git.lix.systems/lix-project/lix/issues/147 Change-Id: Ifca22e443d357762125f4ad6bc4f568af3a26c62 | |||
2024-08-04 | tree-wide: fix various lint warnings | Jade Lovelace | |
Change-Id: I0fc80718eb7e02d84cc4b5d5deec4c0f41116134 | |||
2024-07-05 | libutil: convert readFileSource to a generator | eldritch horrors | |
Change-Id: I5f92b15fd367d46eb047d74ab6e317b4f51a46d3 | |||
2024-07-05 | libstore: convert dumpPath to a generator | eldritch horrors | |
Change-Id: Ic4cf5562504aa29130304469936f958c0426e5ef | |||
2024-06-19 | libutil: return a source from readFile | eldritch horrors | |
don't consume a sink, return a source instead. the only reason to not do this is a very slight reduction in dynamic allocations, but since we are going to *at least* do disk io that will not be a lot of overhead anyway Change-Id: Iae2f879ec64c3c3ac1d5310eeb6a85e696d4614a | |||
2024-05-29 | util.hh: Delete remaining file and clean up headers | Tom Hubrecht | |
Change-Id: Ic1f68e6af658e94ef7922841dd3ad4c69551ef56 | |||
2023-04-17 | Merge pull request #7732 from hercules-ci/make-initLibStore-viable-alternative | John Ericson | |
Make `initLibStore` a viable alternative | |||
2023-04-07 | Require openssl >= 1.1.1 | Robert Hensing | |
Versions older this are sufficiently old that we don't want to support them, and they require extra support code. | |||
2023-04-07 | Move OpenSSL init to initLibUtil | Robert Hensing | |
Part of an effort to make it easier to initialize the right things, by moving code into the appropriate libraries. | |||
2023-04-07 | Rename and protect `BufferedSink::write` | Théophane Hufschmitt | |
The `write` name is ambiguous and could lead to some funny bugs like https://github.com/NixOS/nix/pull/8173#issuecomment-1500009480. So rename it to the more explicit `writeUnbuffered`. Besides, this method shouldn't be (and isn't) used outside of the class implementation, so mark it `protected`. This makes it more symetrical to `BufferedSource` which uses a `protected readUnbuffered` method. | |||
2023-03-29 | avoid a string copy in printHash16 | Vaci Koblizek | |
2023-03-29 | return string_view from printHashType rather than string | Vaci Koblizek | |
2023-03-28 | Avoid a string copy during Hash::to_string | Vaci Koblizek | |
2022-04-07 | don't assume that rev is a SHA1 hash | Kasper Gałkowski | |
This was a problem when writing a fetcher that uses e.g. sha256 hashes for revisions. This doesn't actually do anything new, but allows for creating such fetchers in the future (perhaps when support for Git's SHA256 object format gains more popularity). | |||
2022-02-25 | Remove std::string alias (for real this time) | Eelco Dolstra | |
Also use std::string_view in a few more places. | |||
2022-01-27 | return string_views from forceString* | pennae | |
once a string has been forced we already have dynamic storage allocated for it, so we can easily reuse that storage instead of copying. | |||
2020-12-02 | Sink: Use std::string_view | Eelco Dolstra | |
2020-10-28 | Consistency | Eelco Dolstra | |
2020-08-05 | Add Hash::dummy to signal default value | Carlo Nucera | |
We did this in the same spirit of the dummy value that's present in libstore/path.hh | |||
2020-07-20 | Remove period at the end of the exception message | John Ericson | |
2020-07-20 | parser.hh -> split.hh | John Ericson | |
2020-07-16 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-16 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-07-15 | Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type | Carlo Nucera | |
2020-07-14 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-13 | Remove istringstream_nocopy | Eelco Dolstra | |
2020-07-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-03 | Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into ↵ | John Ericson | |
better-ca-parse-errors | |||
2020-07-03 | Merge branch 'master' of github.com:NixOS/nix into hash-always-has-type | John Ericson | |
2020-07-02 | Have `splitPrefix` and `splitPrefixTo` parser helpers | John Ericson | |
2020-07-02 | Move `getParsedTypeAndSRI` to a more suitable location | John Ericson | |
Also mark it static | |||
2020-07-02 | Fix abort in 'nix develop' | Eelco Dolstra | |
2020-07-02 | Write the implementation for parseNonSRIUnprefixed | Carlo Nucera | |
2020-07-02 | Abstract common parsing functionality | Carlo Nucera | |
2020-07-02 | Inline and simplify in parseAnyPrefixed | Carlo Nucera | |
2020-07-02 | Rename fromSRI to parseSRI for constistency | Carlo Nucera | |
2020-07-02 | Get rid of the std::pair | Carlo Nucera | |
2020-07-02 | Inline newFunction | Carlo Nucera | |
2020-07-02 | Fix test suite | Carlo Nucera | |
2020-07-01 | Rename two hash constructors to proper functions | Carlo Nucera | |
2020-07-01 | Inline Hash::init() | Carlo Nucera | |
2020-07-01 | Keep the previous name, for diffing | Carlo Nucera | |
2020-07-01 | Fixed build, we still have test errors | Carlo Nucera | |
2020-06-30 | WIP initial design | Carlo Nucera | |
2020-06-30 | Factor the prefix splitting in hash | Carlo Nucera | |
2020-06-29 | Merge remote-tracking branch 'upstream/master' into hash-always-has-type | John Ericson | |
2020-06-26 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-25 | Fix empty std::optional dereference in writeDerivation() | Eelco Dolstra | |
https://hydra.nixos.org/build/123017579 |