Skip to content
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

Allow poetry add with a --frozen flag to freeze current/specified version of dependency #5116

Closed
2 tasks done
aalok-sathe opened this issue Jan 27, 2022 · 2 comments · Fixed by #5874
Closed
2 tasks done
Labels
area/docs Documentation issues/improvements

Comments

@aalok-sathe
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

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 the pyproject.toml file to achieve this, an option to the add command to by default add a specific version 3.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 the numpy dependency to its current version in the lock file.

@aalok-sathe aalok-sathe added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jan 27, 2022
@clintonroy
Copy link
Contributor

You can already do this.

poetry add pytest==6.2.4

for example.

@mkniewallner mkniewallner added area/docs Documentation issues/improvements and removed kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Jun 18, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/docs Documentation issues/improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants