Skip to content
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

fix: disable poetry plugin output #2482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FotiadisM
Copy link

@FotiadisM FotiadisM commented Jan 16, 2025

Summary

When using poetry, with the suggested init_hook from the docs:

{
    "packages": [
        "python3",
        "[email protected]" // notice I am using poetry 1.8, the poetry shell command is not part of poetry version 2.0
    ],
    "shell": {
        "init_hook": "poetry shell"
    }
}

and running devbox shell, while the poetry env is being loaded, it generates this log:
Using virtualenv: /home/fotiadis/src/work/trumo/services/tc_gateway_consumer/.venv

This can be problematic to users instant prompt like the very famous zsh theme powerlevel10k

By adding the --quiet flag this solves the problem

What about poetry 2.0?

poetry 2.0 has removed the poetry shell (the functionality still exists if you download a plugin). The new way to achieve the same behavior according to the docs is: eval $(poetry env activate)

This change doesn't impact either major versions of poetry, and it will continue to work as normal

How was it tested?

By disabling the current poetry plugin, and creating a new one that is the exact copy, just with the flag on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant