From 62b8f1f82167026fff78f58c0c866ae12ac682ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Sun, 25 Jun 2023 15:06:37 +0200 Subject: [PATCH] Improve warning message when lockfile is not up-to-date (#215) --- 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." "" )