-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add output for poetry lock --check #5081
Changes from 5 commits
67a00d1
2cc1a3b
1f9f3d4
cd9eaa5
456359a
b1e4b57
94eeecc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,12 +57,11 @@ def handle(self) -> None: | |
self.call("lock", " ".join(options)) | ||
|
||
if not locker.is_fresh(): | ||
self.line_error( | ||
self._io.write_line( | ||
"<warning>" | ||
"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." | ||
"Error: poetry.lock is not consistent with pyproject.toml. " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should start with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
"You may be getting improper dependencies. " | ||
"Run `poetry update` to fix it." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
"</warning>" | ||
) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,10 +258,9 @@ def _do_install(self, local_repo: Repository) -> int: | |
if not self._locker.is_fresh(): | ||
self._io.write_line( | ||
"<warning>" | ||
"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." | ||
"Error: poetry.lock is not consistent with pyproject.toml. " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also start with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
"You may be getting improper dependencies. " | ||
"Run `poetry update` to fix it." | ||
"</warning>" | ||
) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably,
line_error()
is correct here, because warnings should go to stderr instead of stdout. I know, ininstaller.py
the warning is written to stdout... Maybe, something that can be harmonized for all warnings in a separate PR...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated