Commit 9b56bdd5 by Dimitri Merejkowsky Committed by Arun Babu Neelicattu

doc: explain why `update` sometimes causes a no-op

parent 518b6993
...@@ -165,6 +165,11 @@ If you just want to update a few packages and not all, you can list them as such ...@@ -165,6 +165,11 @@ If you just want to update a few packages and not all, you can list them as such
poetry update requests toml poetry update requests toml
``` ```
Note that this will not update versions for dependencies outside their version constraints specified
in the `pyproject.toml` file. In other terms, `poetry update foo` will be a no-op if the version constraint
specified for `foo` is `~2.3` or `2.3` and `2.4` is available. In order for `foo` to be updated, you must
update the constraint, for example `^2.3`. You can do this using the `add` command.
### Options ### Options
* `--dry-run` : Outputs the operations but will not execute anything (implicitly enables --verbose). * `--dry-run` : Outputs the operations but will not execute anything (implicitly enables --verbose).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment