1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 20:16:03 +01:00
nix/src/libutil-tests
Farid Zakaria a67c93c240 Improve Git URI handling
Git URI can also support scp style links similar to git itself.

This change augments the function fixGitURL to better handle the scp
style urls through a minimal parser rather than regex which has been
found to be brittle.

* Support for IPV6 added
* New test cases added for fixGitURL
* Clearer documentation on purpose and goal of function
* More `std::string_view` for performance
* Update URL tests

Fixes #5958

Mostly undoes revert 4757487110599bbe9a287ead75741bba5436d52f
Adapted from commit 04ad66af5f
2025-09-01 17:20:40 -04:00
..
data/git Implement support for Git hashing with SHA-256 2025-07-25 10:19:08 -04:00
pch libutil-tests: Improve compile times with PCH 2025-08-17 00:57:06 +03:00
.version Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
args.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
base-n.cc Base64 trailing test (from Snix, thanks) 2025-08-06 11:52:11 -04:00
canon-path.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
checked-arithmetic.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
chunked-vector.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
closure.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
compression.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
config.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
executable-path.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
file-content-address.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
file-system.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
git.cc libutil: Make HashResult a proper struct 2025-08-08 02:06:14 +03:00
hash.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
hilite.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
json-utils.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
logging.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
lru-cache.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
meson.build treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
monitorfdhup.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_util.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00
pool.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
position.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
processes.cc Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
sort.cc libutil: Add custom PeekSort implementation 2025-06-15 16:52:01 +00:00
spawn.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
strings.cc Better stringSplit 2025-08-26 18:03:23 -04:00
suggestions.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
terminal.cc libutil: amend OSC 8 escape stripping for xterm-style separator 2025-04-29 16:12:18 +01:00
url.cc Improve Git URI handling 2025-09-01 17:20:40 -04:00
util.cc Clean up Base* code 2025-08-06 11:51:44 -04:00
xml-writer.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00