poetry version
throws error Key "source" already exists.
when sources are not in order in toml-file
#10144
Labels
poetry version
throws error Key "source" already exists.
when sources are not in order in toml-file
#10144
Description
With a standard .toml file
running
poetry version "1"
works fine.Now, if you then switch a source to the buttom of the file i.e after
[build-system]
likerunning the same command throws the error
Key "source" already exists
.I doubt that is a feature, and if it is, is it possible to get a more correct error? It is extremely difficult to debug on that error, and I discovered it by an accident (copy/pasting gone wrong but turns out right).
Workarounds
Specify all
source
next to each-otherPoetry Installation Method
pip
Operating System
Darwin
Poetry Version
1.8.5
Poetry Configuration
Python Sysconfig
sysconfig.log
Example pyproject.toml
Poetry Runtime Logs
poetry-runtime.log
The text was updated successfully, but these errors were encountered: