-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- Poetry version: 1.2.2
- Python version: 3.10.8
- OS version and name: macOS 13.0
- pyproject.toml: https://gist.github.com/gnuletik/8d876426a36b9bfefee4327823c1459b
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
It seems that a race condition occurs when installing two packages:
- from the same git repository
- with a different subdirectory
- on a non-default git branch
Repro:
cd /tmp
git clone https://github.com/gnuletik/poetry-lib-monorepo-issue
cd poetry-lib-monorepo-issue
poetry installIt fails with
Package operations: 2 installs, 0 updates, 0 removals
• Installing package1 (0.1.0 c6f487b): Failed
NotGitRepository
No git repository was found at /private/tmp/test-poetry/.venv/src/poetry-multipackages-example
at /opt/homebrew/Cellar/poetry/1.2.2/libexec/lib/python3.10/site-packages/dulwich/repo.py:1090 in __init__
1086│ elif (os.path.isdir(os.path.join(root, OBJECTDIR))
1087│ and os.path.isdir(os.path.join(root, REFSDIR))):
1088│ bare = True
1089│ else:
→ 1090│ raise NotGitRepository(
1091│ "No git repository was found at %(path)s" % dict(path=root)
1092│ )
1093│
1094│ self.bare = bare
The following error occurred when trying to handle this error:
NB: output of poetry install -vvv can be found here: https://gist.github.com/gnuletik/ddcb05ff3467f022f9d3540f379763df
Please note that subsequent calls may succeed but a fresh install (after a poetry env remove --all) always fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged