lix/src/libutil/tests
Maximilian Bosch ddcef3bcbb
Fix Nix to properly work with stores using a scoped IPv6 address
According to RFC4007[1], IPv6 addresses can have a so-called zone_id
separated from the actual address with `%` as delimiter. In contrast to
Nix 2.3, the version on `master` doesn't recognize it as such:

    $ nix ping-store --store ssh://root@fe80::1%18 --experimental-features nix-command
    warning: 'ping-store' is a deprecated alias for 'store ping'
    error: --- Error ----------------------------------------------------------------- nix
    don't know how to open Nix store 'ssh://root@fe80::1%18'

I modified the IPv6 match-regex accordingly to optionally detect this
part of the address. As we don't seem to do anything special with it, I
decided to leave it as part of the URL for now.

Fixes #4490

[1] https://tools.ietf.org/html/rfc4007
2021-03-16 19:14:42 +01:00
..
compression.cc Add compression unit tests 2020-06-08 11:34:37 +02:00
config.cc Fix test 2020-10-30 12:00:53 +01:00
hash.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
json.cc Add unit tests for "json.hh" 2020-05-25 11:57:45 +02:00
local.mk Add tests for logging.hh 2020-06-06 10:22:32 +02:00
logging.cc Improve error formatting 2021-01-21 11:02:09 +01:00
lru-cache.cc src/libutil/tests/lru-cache.cc: Check erase() 2020-06-02 12:06:59 +02:00
pool.cc Add tests for pool.hh 2020-06-10 22:29:50 +02:00
tests.cc Fix tests 2021-01-08 14:17:06 +01:00
url.cc Fix Nix to properly work with stores using a scoped IPv6 address 2021-03-16 19:14:42 +01:00
xml-writer.cc Add unit tests for xml-writer 2020-05-25 18:34:55 +02:00