Skip to content

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

Merged
neersighted merged 1 commit into1.2from
backport-6753-to-1.2
Oct 10, 2022
Merged

[1.2] feat(locker): poetry lock works if an invalid/incompatible lock file exists#6759
neersighted merged 1 commit into1.2from
backport-6753-to-1.2

Conversation

@poetry-bot
Copy link
Copy Markdown

@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
@github-actions
Copy link
Copy Markdown

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