Skip to content

cache issue: virtualenv 20.35.0 breaks hatch 1.14.2 #2972

@alexander-630

Description

@alexander-630

Issue
When hatch here calls

virtualenv_discovery.get_interpreter(
                python_version, (), env=envs
            )

it doesn't set cache argument, which leads to this place to fail (was added in this pr). Originally there was a check:

if cache is None:
        if app_data is None:
            app_data = AppDataDisabled()
        cache = FileCache(store_factory=app_data.py_info, clearer=app_data.py_info_clear)

but it was removed in this PR

Environment
virtualenv 20.35.0
hatch 1.14.2
Provide at least:

  • OS: Macos 15.7

  • Shell: zsh

  • Python version and path:

  • pip list of the host python where virtualenv is installed:

Output of the virtual environment creation

Make sure to run the creation with -vvv --with-traceback:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions