Skip to content

libutil: Move references.{hh,cc} to libstore, remove unused scanForReferences#13714

Merged
xokdvium merged 2 commits intoNixOS:masterfrom
xokdvium:move-ref-scan-sink
Aug 8, 2025
Merged

libutil: Move references.{hh,cc} to libstore, remove unused scanForReferences#13714
xokdvium merged 2 commits intoNixOS:masterfrom
xokdvium:move-ref-scan-sink

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Aug 7, 2025

Motivation

The implicit dependency on refLength (which is the StorePath::HashLen)
is not good. Also the companion tests and benchmarks are already in libstore-tests.

The scanForReferences overload doesn't seem to be used anywhere at the moment.
It might be used out-of-tree, but this is a small convenience
function that is not worth keeping without in-tree usage.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Aug 7, 2025
This doesn't seem to be used anywhere at the moment.
It might be used out-of-tree, but this is a small convenience
function that is not worth keeping without in-tree usage.
The implicit dependency on refLength (which is the StorePath::HashLen)
is not good. Also the companion tests and benchmarks are already in libstore-tests.
@xokdvium xokdvium force-pushed the move-ref-scan-sink branch from 3c8b904 to 2e3ebfb Compare August 8, 2025 07:40
@xokdvium xokdvium enabled auto-merge August 8, 2025 07:40
@xokdvium xokdvium merged commit cac8ec3 into NixOS:master Aug 8, 2025
14 checks passed
@xokdvium xokdvium deleted the move-ref-scan-sink branch August 8, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants