lheckemann / cache-gc

Extremely unpolished tool for garbage-collecting flat-file Nix binary caches.
MIT License
8 stars 2 forks source link

querying x is displayed instead of actual hash #3

Open SuperSandro2000 opened 1 year ago

SuperSandro2000 commented 1 year ago

When running the tool on a skyflake nix store I always get querying x on file:///storage/cephfs/store where x should probably be what currently is being queried, right?

lheckemann commented 1 year ago

This is because Nix doesn't know the name of the path before reading the narinfo. Related: https://github.com/NixOS/nix/issues/5645

lheckemann commented 1 year ago

I suppose we could redirect its stderr to /dev/null so it doesn't report that nonsense. Personally I don't care enough to change this, but if you want to do that in a PR I'm happy to merge it.