1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-20 07:51:07 +01:00
nix/src/libstore-c
Sergei Zimmerman 1b7ffa53af
treewide: Remove getUri and replace with getHumanReadableURI where appropriate
The problem with old code was that it used getUri for both the `diskCache`
as well as logging. This is really bad because it mixes the textual human
readable representation with the caching.

Also using getUri for the cache key is really problematic for the S3 store,
since it doesn't include the `endpoint` in the cache key, so it's totally broken.

This starts separating the logging / cache concerns by introducing a
`getHumanReadableURI` that should only be used for logging. The caching
logic now instead uses `getReference().render(/*withParams=*/false)` exclusively.
This would need to be fixed in follow-ups, because that's really fragile and
broken for some store types (but it was already broken before).
2025-08-14 16:47:05 +03:00
..
.version Mesonify other external API 2024-07-02 09:23:24 -04:00
meson.build meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_store.cc treewide: Remove getUri and replace with getHumanReadableURI where appropriate 2025-08-14 16:47:05 +03:00
nix_api_store.h docs, messages: Resolve nixos.org/manual/nix/stable redirect 2025-07-25 10:18:13 +02:00
nix_api_store_internal.h Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00