Allow poetry add
with a --frozen
flag to freeze current/specified version of dependency
#5116
Closed
2 tasks done
Labels
area/docs
Documentation issues/improvements
Feature Request
It would be useful to be able to freeze the version of a dependency at the same time as
add
. Some dependencies can be volatile, and even with the expectation that a minor revision should not chage the interface of any dependency, to certain projects, this risk may not be tolerable. Whereas we can already manually edit thepyproject.toml
file to achieve this, an option to theadd
command to by default add a specific version3.1.4
rather than^3.1.4
or no version at all, would be useful.Being able to do this retroactively could also be useful, using, say,
poetry freeze numpy
, which will freeze thenumpy
dependency to its current version in the lock file.The text was updated successfully, but these errors were encountered: