From 898406ca3006538925aad726bf91d55cd595e7a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Sun, 25 Jun 2023 13:33:15 +0200 Subject: [PATCH] Improve warning message when lockfile is not up-to-date --- src/poetry_plugin_export/command.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/poetry_plugin_export/command.py b/src/poetry_plugin_export/command.py index 4f27578..5a86acf 100644 --- a/src/poetry_plugin_export/command.py +++ b/src/poetry_plugin_export/command.py @@ -81,10 +81,9 @@ def handle(self) -> int: if not locker.is_fresh(): self.line_error( "" - "Warning: The lock file is not up to date with " - "the latest changes in pyproject.toml. " - "You may be getting outdated dependencies. " - "Run update to update them." + "Warning: poetry.lock is not consistent with pyproject.toml. " + "You may be getting improper dependencies. " + "Run `poetry lock [--no-update]` to fix it." "" )