summaryrefslogtreecommitdiff
path: root/src/other_tools/utils
AgeCommit message (Collapse)Author
2025-03-10Promote IsValidFileName to a public function of the path utilsKlaus Aehlig
... instead of being private to parse_archive.
2025-02-14code structure: rename symlinks_map folder to symlinksPaul Cristian Sarbu
...to remove the unnecessary link between folder name and the logic of resolve_symlinks_map.
2025-01-22just-mr: support absent computed rootsKlaus Aehlig
2025-01-22Computed roots: extend data structure to support the absent pragmaKlaus Aehlig
2025-01-21JustMr: Support absent tree structure rootsMaksim Denisov
2025-01-21Just: Support absent tree structure rootsMaksim Denisov
2025-01-13just-mr setup: Fix ensuring 'subdir' only accepts non-upwards pathsPaul Cristian Sarbu
...which implicitly also enforces non-absolute. This ensures that there is no access outside the root directory of a Git checkout or the temporary unpack directory of an archive.
2025-01-10just-mr setup: Fix ensuring field 'subdir' only accepts relative pathsPaul Cristian Sarbu
2024-12-20TreeStructure: support parsing in just-mrMaksim Denisov
2024-12-20TreeStructure: Unify parsing of precomputed roots in just-mrMaksim Denisov
2024-12-19Remove FileRoot::ComputedRootMaksim Denisov
2024-12-19Fix cause of minor warningsOliver Reiche
2024-12-19Fix struct member initializationOliver Reiche
2024-11-27JustMR: Parse computed repositoriesMaksim Denisov
2024-11-14other_tools/utils: Implement IWYU suggestionsMaksim Denisov
2024-10-08Name value template parameters using kCamelCase.Maksim Denisov
2024-10-07Enable cppcoreguidelines-* checks.Maksim Denisov
2024-10-07Enable readability-redundant-member-init check.Maksim Denisov
2024-09-26Fix assignments in conditionsMaksim Denisov
...proposed by clang-tidy. Enable bugprone-assignment-in-if-condition check.
2024-09-23Reorder dependencies and remove duplicates in OSSMaksim Denisov
2024-09-18Add missing #endif comments in headersMaksim Denisov
2024-09-12Prefer fseek ofer rewindKlaus Aehlig
2024-09-11Store HashInfo in just-mr's GitTreeInfo as tree_hashMaksim Denisov
...and use it to create ArtifactDigests.
2024-09-11Store HashInfo in just-mr's ArchiveContent as content hashMaksim Denisov
...and use it to create ArtifactDigests.
2024-09-11Move just-mr's parsing of git trees to ParseGitTreeMaksim Denisov
...and use it in fetch and repos_to_setup_map to remove code duplication.
2024-09-11Move ParseArchiveContent function to the headerMaksim Denisov
...to remove code duplications in ReposToSetupMap.
2024-07-22Create Hasher using a static functionMaksim Denisov
2024-06-28Use (un)expected for network fetchOliver Reiche
2024-04-08Use properly included standard library types by defaultPaul Cristian Sarbu
2024-03-26Add missing system includesPaul Cristian Sarbu
Main culprits: - std::size_t, std::nullptr_t, and NULL require <cstddef> - std::move and std::forward require <utility> - unordered maps and sets require respective includes - std::for_each and std::all_of require <algorithm>
2024-03-15Clean up more includes and targetsPaul Cristian Sarbu
Some of the more specific issues addressed: - missing log_level target/include - header-only libs wrongly marking deps as private - missing/misplaced gsl includes
2024-03-08Remove dead code for host replacementOliver Reiche
2024-03-08just-mr: Fix "preferred hostnames"Oliver Reiche
... instead of replacing the host name of each mirror, it should only reorder the list of given mirrors.
2024-03-08CurlURLHandle: Add GetHostname routineOliver Reiche
2024-03-08just-mr: Report fetch URLs on debug levelOliver Reiche
2024-03-05Add data structure for foreign-file rootsKlaus Aehlig
2024-02-28Deduplicate parsing of archive descriptionsKlaus Aehlig
2023-12-19just-mr setup: Add missing reporting of failed hostname replacementPaul Cristian Sarbu
2023-12-01just-mr archive: Report all tried remotes if fetch failsPaul Cristian Sarbu
2023-11-14just-mr archives fetch: Add logic for local mirrors and preferred hostnamesPaul Cristian Sarbu
2023-11-14curl_url_handle: Add method to replace the hostname of a URLPaul Cristian Sarbu
Also adds a section in the curl_url test suite.
2023-11-14curl_url_handle: Allow permissive parsing and URL extraction to be non-fatalPaul Cristian Sarbu
2023-11-14curl_url_handle: Improve documentationPaul Cristian Sarbu
2023-11-14just-mr: Add 'mirrors' field to archive-like repositoriesPaul Cristian Sarbu
Also extends 'distdir' repositories logic accordingly.
2023-11-14curl_easy_handle: Allow non-fatal logging of errors in curl operationsPaul Cristian Sarbu
In order to allow non-fatal retries of fetches, be it from same remote or not (e.g., mirrors), the handle now reports with a caller-defined LogLevel.
2023-11-02Move content archive helper functions in own libraryPaul Cristian Sarbu
2023-11-02ArchiveOps: Move libarchive utilities outside other_toolsPaul Cristian Sarbu
This way they can be used by 'just serve'.
2023-10-16curl_easy_handle: Ensure we report a fail on HTTP codes >=400Paul Cristian Sarbu
...which signal either cient- or server-side failures. This ensures we exit with a failed network fetch early in cases where it is clear we won't receive useful data.
2023-08-14just-mr archives: Add 7zip support via autodetection optionPaul Cristian Sarbu
Similarly to tarballs, an autodetection option for zip-like archives is added to enable a unified handling of both traditional zip and 7zip formats. Thus, for "zip" archives just-mr uses now this autodetection option.
2023-08-14ArchiveOps: Add handling of 7zip archivesPaul Cristian Sarbu
Also updates the archive usage tests accordingly.