8000 Make `deletePath` and `LocalStore::deleteStorePath` return statistics instead of using an out-parameter · Issue #16623 · NixOS/nix · GitHub
[go: up one dir, main page]

Skip to content

Make deletePath and LocalStore::deleteStorePath return statistics instead of using an out-parameter #16623

Open

Description

@xokdvium

This API sucks. We should just return a structure with a result instead of this hack for overload resolution. We could just ignore the result at the call site if so desired.

But let's proceed with this hack for now.

Originally posted by @xokdvium in #16616

Activity

  1. added
    good first issueQuick win for first-time contributors
    idea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.
    on Oct 16, 2026
  2. hjeesum commented on Oct 28, 2026

    @hjeesum

    I’d like to take this. Plan: have deletePath and LocalStore::deleteStorePath return a small struct with bytesFreed instead of the out-param, and update the call sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueQuick win for first-time contributorsidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0