1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 14:32:42 +01:00
nix/src/libstore
Sergei Zimmerman 1ca1882e8c libstore: Reallow unbracketed IPv6 addresses in store references
This implements a special back-compat shim to specifically allow
unbracketed IPv6 addresses in store references. This is something
that is relied upon in the wild and the old parsing logic accepted
both ways (brackets were optional). This patch restores this behavior.
As always, we didn't have any tests for this.

Addresses #13937.

(cherry picked from commit 7cc654afa9)
2025-09-08 23:22:41 +00:00
..
build Make sure settings.sandboxedPaths is closed outside DerivationBuilder 2025-08-20 18:49:11 -04:00
builtins No more globals.hh in headers 2025-08-20 16:24:37 -04:00
include/nix/store libstore: Do not normalize daemon -> unix://, local -> local:// 2025-09-07 23:38:14 +03:00
linux Merge pull request #13490 from Mic92/clang-tidy-simple-warnings 2025-08-11 18:21:46 +02:00
pch libstore: Speed up builds by using precompiled headers 2025-07-20 22:01:53 +03:00
unix Make sure settings.sandboxedPaths is closed outside DerivationBuilder 2025-08-20 18:49:11 -04:00
windows meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
.version Build nix-store with Meson 2024-06-14 10:25:14 -04:00
binary-cache-store.cc treewide: Remove getUri and replace with getHumanReadableURI where appropriate 2025-08-14 16:47:05 +03:00
build-result.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
ca-specific-schema.sql Rename to "content-address*ing* derivation" 2025-02-10 01:12:56 -05:00
common-protocol.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
common-ssh-store-config.cc Add user@address:port support 2025-08-06 23:48:14 +03:00
content-address.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
daemon.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
derivation-options.cc Deduplicate "export reference graph" logic a bit 2025-08-20 16:54:17 -04:00
derivations.cc speedup derivation parsing 2025-08-05 22:00:30 +02:00
derived-path-map.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
derived-path.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
downstream-placeholder.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
dummy-store.cc Rewrite StoreConfig::getUri in terms of new StoreConfig::getReference 2025-08-13 19:06:59 -04:00
dummy-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
export-import.cc libutil: Make HashResult a proper struct 2025-08-08 02:06:14 +03:00
filetransfer.cc libstore: Introduce ParsedS3URL type 2025-08-19 23:39:18 +03:00
gc.cc libstore: Remove dead variable 2025-08-05 14:03:38 +02:00
globals.cc Make Settings::sandboxPaths well-typed 2025-08-20 16:24:37 -04:00
http-binary-cache-store.cc treewide: Remove getUri and replace with getHumanReadableURI where appropriate 2025-08-14 16:47:05 +03:00
http-binary-cache-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
indirect-root-store.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
keys.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
legacy-ssh-store.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
legacy-ssh-store.md Add user@address:port support 2025-08-06 23:48:14 +03:00
local-binary-cache-store.cc Rewrite StoreConfig::getUri in terms of new StoreConfig::getReference 2025-08-13 19:06:59 -04:00
local-binary-cache-store.md Support per-store Markdown documentation 2023-03-21 14:03:40 +01:00
local-fs-store.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
local-overlay-store.cc Rewrite StoreConfig::getUri in terms of new StoreConfig::getReference 2025-08-13 19:06:59 -04:00
local-overlay-store.md docs: Fix miscellaneous typos and formatting issues 2025-05-13 22:20:11 +00:00
local-store.cc libstore: Do not normalize daemon -> unix://, local -> local:// 2025-09-07 23:38:14 +03:00
local-store.md Build the local store on Windows 2024-05-10 13:05:23 -04:00
log-store.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
machines.cc Clean up Base* code 2025-08-06 11:51:44 -04:00
make-content-addressed.cc libutil: Move references.{hh,cc} to libstore 2025-08-08 10:30:09 +03:00
meson.build libstore: Reallow unbracketed IPv6 addresses in store references 2025-09-08 23:22:41 +00:00
meson.options meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
misc.cc Store StructuredAttrs directly in Derivation 2025-07-29 17:28:16 -04:00
mounted-ssh-store.md MountedSSHStore: stores on shared filesystems 2023-11-21 13:34:01 -05:00
names.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
nar-accessor.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
nar-info-disk-cache.cc Bump the version of the SQLite caches 2025-08-20 20:44:58 +02:00
nar-info.cc Make a few more things use StoreDirConfig instead of Store 2025-08-15 15:35:51 -04:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
optimise-store.cc libutil: Make HashResult a proper struct 2025-08-08 02:06:14 +03:00
outputs-spec.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
package.nix flake: Apply nixfmt 1.0.0 2025-08-18 20:29:45 +03:00
parsed-derivations.cc Deduplicate "export reference graph" logic a bit 2025-08-20 16:54:17 -04:00
path-info.cc Make a few more things use StoreDirConfig instead of Store 2025-08-15 15:35:51 -04:00
path-references.cc libstore: Remove unused overload of scanForReferences 2025-08-08 10:30:07 +03:00
path-with-outputs.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
path.cc Move some MixStoreDirMethods members to the right .cc file 2025-08-06 20:13:15 -04:00
pathlocks.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
posix-fs-canonicalise.cc libstore: always canonicalize directory permissions 2025-08-06 10:58:46 -05:00
profiles.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
realisation.cc Get rid of filterDrvOutputs 2025-08-14 00:09:08 -04:00
references.cc libutil: Move references.{hh,cc} to libstore 2025-08-08 10:30:09 +03:00
remote-fs-accessor.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
remote-store.cc RemoteStore::addToStoreFromDump(): Invalidate cache entry for added path 2025-08-18 18:12:42 +02:00
restricted-store.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
s3-binary-cache-store.cc treewide: Remove getUri and replace with getHumanReadableURI where appropriate 2025-08-14 16:47:05 +03:00
s3-binary-cache-store.md fix location 2024-09-27 11:07:04 +02:00
s3.cc libstore: Introduce ParsedS3URL type 2025-08-19 23:39:18 +03:00
schema.sql Build the local store on Windows 2024-05-10 13:05:23 -04:00
serve-protocol-connection.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
serve-protocol.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
sqlite.cc SQLite: fsync db.sqlite-shm before opening the database 2025-08-25 22:06:21 +00:00
ssh-store.cc Rewrite StoreConfig::getUri in terms of new StoreConfig::getReference 2025-08-13 19:06:59 -04:00
ssh-store.md Add user@address:port support 2025-08-06 23:48:14 +03:00
ssh.cc Fix Git LFS SSH issues 2025-08-13 21:04:29 +03:00
store-api.cc libstore: Do not normalize daemon -> unix://, local -> local:// 2025-09-07 23:38:14 +03:00
store-dir-config.cc Simplify "Store dir" superclass 2025-08-15 14:12:37 -04:00
store-reference.cc libstore: Reallow unbracketed IPv6 addresses in store references 2025-09-08 23:22:41 +00:00
store-registration.cc No more globals.hh in headers 2025-08-20 16:24:37 -04:00
uds-remote-store.cc libstore: Do not normalize daemon -> unix://, local -> local:// 2025-09-07 23:38:14 +03:00
uds-remote-store.md Enable the unix:// store on Windows 2024-04-18 16:58:32 -04:00
worker-protocol-connection.cc BasicClientConnection::queryPathInfo(): Don't throw exception for invalid paths 2025-08-18 18:12:42 +02:00
worker-protocol.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00