Issue
The documentation says
When adding dependencies via poetry add, you can use the @ operator. This is understood similarly to the == syntax, but also allows prefixing any specifiers that are valid in pyproject.toml.
And it shows the example that poetry add django@^4.0.0 will add the line Django = "^4.0.0" to pyproject.toml. But what version is installed (written to poetry.lock) is not shown.
As "@ operator is understood similarly to the == syntax", django 4.0.0 is expected to be installed. But no.
$ poetry show django
name : django
version : 4.0.6
This result seems to be the same as poetry add django^4.0.0. What is the difference? What is the effect of @ operator?
#3142 and #5136 is the similar questions, and #5822 says it solved them, but I can't understand the effect of @ operator by reading the documentation.
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).OS version and name: CentOS Stream
Poetry version: 1.1.13
Link of a Gist with the contents of your pyproject.toml file: None
Issue
The documentation says
And it shows the example that
poetry add django@^4.0.0will add the lineDjango = "^4.0.0"topyproject.toml. But what version is installed (written topoetry.lock) is not shown.As "
@operator is understood similarly to the == syntax", django 4.0.0 is expected to be installed. But no.This result seems to be the same as
poetry add django^4.0.0. What is the difference? What is the effect of@operator?#3142 and #5136 is the similar questions, and #5822 says it solved them, but I can't understand the effect of
@operator by reading the documentation.