Skip to content

Duplicate install automatically attempted in folder with git worktrees #1627

Description

@eaaltonen

I have a new project, myapp.

I had GitHub copilot generate a sketch. This is git branch copilot and the main branch is called main. Both branches are checked out as worktrees under the project folder.

.
├── copilot
└── main

Trying to create a new virtualenv fails with a conflict ERROR: Cannot install myapp 0.1.0, since the environment manager is automatically trying to install from both main/pyproject.toml and copilot/pyproject.toml.

[info] python: 
The conflict is caused by:
    The user requested myapp 0.1.0 (from /PATH/TO/myapp/copilot)
    The user requested myapp 0.1.0 (from /PATH/TO/myapp/main)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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