Skip to content

Commit

Permalink
Improve error message when installing non-package in package-mode
Browse files Browse the repository at this point in the history
(cherry picked from commit 0266156)
  • Loading branch information
Andy Clegg authored and abn committed Mar 2, 2024
1 parent 03f3232 commit 70d4f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poetry/console/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def handle(self) -> int:
"If you do not want to install the current project"
" use <c1>--no-root</c1>.\n"
"If you want to use Poetry only for dependency management"
" but not for packaging, you can set the operating mode to "
'"non-package" in your pyproject.toml file.\n'
" but not for packaging, you can disable package mode by setting"
" <c1>package-mode = false</> in your pyproject.toml file.\n"
"In a future version of Poetry this warning will become an error!",
style="warning",
)
Expand Down

0 comments on commit 70d4f58

Please sign in to comment.