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

[1.2] feat(locker): poetry lock works if an invalid/incompatible lock file exists #6759

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

poetry-bot[bot]
Copy link

@poetry-bot poetry-bot bot commented Oct 10, 2022

Backport 7d414af from #6753.

…e exists (#6753)

After having created a lock file 2.0, running `poetry lock` with poetry
1.2.1 results in the following output:

```
The lock file is not compatible with the current version of Poetry.
Upgrade Poetry to be able to read the lock file or, alternatively, regenerate the lock file with the `poetry lock` command.
```

Ironically, the error message proposes to run `poetry lock` which
results in this error message.

Further, it doesn't make sense that `poetry lock` fails because it
creates a new lock file from scratch (in contrast to `poetry lock
--no-update`).

Running `poetry lock` is now also possible if there is a broken lock file.

Resolves: #1196
(cherry picked from commit 7d414af)
@neersighted neersighted enabled auto-merge (rebase) October 10, 2022 18:58
@neersighted neersighted merged commit f1cf0ac into 1.2 Oct 10, 2022
@neersighted neersighted deleted the backport-6753-to-1.2 branch October 10, 2022 19:11
Copy link

This pull request 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 Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants