-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Malformed "@" dependencies in project.dependencies
get silently ignored
#10068
Open
ludgerheide opened this issue
Jan 17, 2025
· 0 comments
· May be fixed by python-poetry/poetry-core#817
Open
Malformed "@" dependencies in project.dependencies
get silently ignored
#10068
ludgerheide opened this issue
Jan 17, 2025
· 0 comments
· May be fixed by python-poetry/poetry-core#817
Labels
Comments
ludgerheide
added
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
labels
Jan 17, 2025
abn
added a commit
to abn/poetry
that referenced
this issue
Jan 17, 2025
We should not pass in front-end specific `@latest` descriptor to the core requirement parser. Relates-to: python-poetry#10068
abn
added a commit
to abn/poetry
that referenced
this issue
Jan 17, 2025
We should not pass in front-end specific `@latest` descriptor to the core requirement parser. Relates-to: python-poetry#10068
abn
added a commit
to abn/poetry
that referenced
this issue
Jan 17, 2025
We should not pass in front-end specific `@latest` descriptor to the core requirement parser. Relates-to: python-poetry#10068
abn
added a commit
to abn/poetry-core
that referenced
this issue
Jan 17, 2025
Prior to this change, when parsing PEP 508 requirement strings, the `Dependency` class silently discarded any URI tokens that cannot be validated as existing files. Resolves: python-poetry/poetry#10068
abn
added a commit
to abn/poetry-core
that referenced
this issue
Jan 17, 2025
Prior to this change, when parsing PEP 508 requirement strings, the `Dependency` class silently discarded any URI tokens that cannot be validated as existing files. Resolves: python-poetry/poetry#10068
abn
added a commit
to abn/poetry-core
that referenced
this issue
Jan 17, 2025
Prior to this change, when parsing PEP 508 requirement strings, the `Dependency` class silently discarded any URI tokens that cannot be validated as existing files. Resolves: python-poetry/poetry#10068
abn
added a commit
to abn/poetry-core
that referenced
this issue
Jan 17, 2025
Prior to this change, when parsing PEP 508 requirement strings, the `Dependency` class silently discarded any URI tokens that cannot be validated as existing files. Resolves: python-poetry/poetry#10068
abn
added a commit
to abn/poetry
that referenced
this issue
Jan 18, 2025
We should not pass in front-end specific `@latest` descriptor to the core requirement parser. Relates-to: python-poetry#10068
abn
added a commit
that referenced
this issue
Jan 18, 2025
We should not pass in front-end specific `@latest` descriptor to the core requirement parser. Relates-to: #10068
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
State where the problem happens
The
pyproject.toml
contains aproject.depencies
with a malformedurlspec
dependency (in this case, a github repository).What we wrote
Expected behavior
poetry lock
should refure to create apoetry.lock
file and complain about the nonsensical URLWhat actually happens
Poetry behaves as if not URL were specified at all, e. g. as if the dependency specification was just
and grabs the latest version from PyPI.
While this is clearly a mistake of the user specifying the wrong dependency URL, I feel like it would be preferable to loudly complain about an unparseable URL in the dependencies, rather than just ignoring it.
Workarounds
If you just specify your depencies correctly in the first place, it doesn't happen
Poetry Installation Method
system package manager (eg: dnf, apt etc.)
Operating System
macOS Sonoma
Poetry Version
2.0.1
Poetry Configuration
Python Sysconfig
See file
python-sysconfig.txt
Example pyproject.toml
Poetry Runtime Logs
See file
poetry.log
The text was updated successfully, but these errors were encountered: