install poetry-core
Issue Description: During the execution of a 'pip' subprocess for installing build dependencies, an error occurred with an exit code of 1. This error is accompanied by a 20-line output log.
Details:
3.254 × pip subprocess to install build dependencies did not run successfully. 3.254 │ exit code: 1 3.254 ╰─> [20 lines of output] 3.254 Collecting poetry-core@ git+https://github.com/python-poetry/poetry-core.git@master 3.254 Cloning https://github.com/python-poetry/poetry-core.git (to revision master) to /tmp/pip-install-kaswgjc0/poetry-core_b73b995a028e4050bb1fd9d3a49d60bd 3.254 Running command git clone --filter=blob:none --quiet https://github.com/python-poetry/poetry-core.git /tmp/pip-install-kaswgjc0/poetry-core_b73b995a028e4050bb1fd9d3a49d60bd 3.254 WARNING: Did not find branch or tag 'master', assuming revision or ref. 3.254 Running command git checkout -q master 3.254 error: pathspec 'master' did not match any file(s) known to git 3.254 error: subprocess-exited-with-error
Solution:
The root cause of this error appears to be a recent change where the default branch name was switched from 'master' to 'main' in the Git repository. To resolve this issue, update the 'pyproject.toml' file as follows:
Before:
[build-system] requires = [ "poetry-core @ git+https://github.com/python-poetry/poetry-core.git@master", ]
After:
[build-system] requires = [ "poetry-core @ git+https://github.com/python-poetry/poetry-core.git@main", ]