Skip to content

rustpkg creates temporary directories but does not delete them #9764

Closed

Description

@ben0x539

rustpkg calls extra::tempfile::mkdtemp (mostly in rustpkg/tests but also in rustpkg::{package_source,version}) and doesn't ever remove the resulting directories.

/tmp grows by 8MiB every time I run make check, we should fix it before I run out of disk space and have to reboot! ;)

Activity

  1. ben0x539 commented on Oct 8, 2013

    @ben0x539
    ContributorAuthor

    I was looking into fixing this myself (eg. like this) but I decided I want to see if there's interest in changing mkdtemp to return an RAII wrapper so I don't have to do the RAII in rustpkg code (#9763). But I also don't want to forget about this!

  2. added a commit that references this issue on Jun 27, 2024
  3. added a commit that references this issue on Aug 21, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions