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

poetry update command only lockfile and not toml #9336

Closed
lorypelli opened this issue Apr 25, 2024 · 3 comments
Closed

poetry update command only lockfile and not toml #9336

lorypelli opened this issue Apr 25, 2024 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@lorypelli
Copy link

Description

When I do this command, only the lockfile gets updated and not the toml one

Workarounds

remove and re-add the dependency (but it changes position, you should order alphabetically)

Poetry Installation Method

pip

Operating System

Windows 10

Poetry Version

Poetry (version 1.8.2)

Poetry Configuration

cache-dir = "C:\\Users\\<username>\\AppData\\Local\\pypoetry\\Cache" (it uses double slash to escape, I don't like it)
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}\\virtualenvs"  # C:\Users\<username>\AppData\Local\pypoetry\Cache\virtualenvs (it doesn't use here)
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

I already reinstalled the package so it has correct version but if I try to install it again with old one, if I do update it says no packages need update, why?
@lorypelli lorypelli added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Apr 25, 2024
@finswimmer
Copy link
Member

Hey,

works as expected. See https://python-poetry.org/docs/cli/#update

To upgrade a dependency to its latest version run poetry add <package>@latest.

Maybe also interesting for you: #461

fin swimmer

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
@lorypelli
Copy link
Author

Hey,

works as expected. See https://python-poetry.org/docs/cli/#update

To upgrade a dependency to its latest version run poetry add <package>@latest.

Maybe also interesting for you: #461

fin swimmer

So, is it an expected behaviour that it doesn't update toml file?

Copy link

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 May 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants