Skip to content

On Windows .venv creates .gitignore in its own directory, not in root. #142875

@5puKn2rKULnv

Description

@5puKn2rKULnv

Bug report

Bug description:

When running venv in Windows, it will create a .venv directory, where within a .gitignore file can be found by default. However Git cannot see it until the directory is commited. Does it not make more sense to generate the .gitignore file in the root folder by default?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions