Skip to content

hatch env prune leaves a directory in LOCALAPPDATA #737

@pfmoore

Description

@pfmoore

I was trying out the environment features of hatch. In doing so, I created environments linked to a bunch of scratch directories. To tidy up, I ran hatch env prune, which according to the help, "Removes all environments". However, although the environments are removed, there's still a directory $env:LOCALAPPDATA\hatch\env\virtual\ppp left (for the project directory ppp). I would have expected hatch env prune to remove all trace of the project directory from the virtual environment shared area, but that doesn't seem to be the case.

If hatch env prune doesn't remove that top-level directory by design, how do I remove it? More generally, what's the command I should use to get hatch to completely forget about a project, so that I can safely delete the project without leaving any linked information lying around (now orphaned)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions