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

Option to ignore venvs - improve isolation of poetry projects #8318

Closed
2 tasks done
jrosiek opened this issue Aug 16, 2023 · 2 comments
Closed
2 tasks done

Option to ignore venvs - improve isolation of poetry projects #8318

jrosiek opened this issue Aug 16, 2023 · 2 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@jrosiek
Copy link

jrosiek commented Aug 16, 2023

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

Summary

Configuration options to:

  1. Reject usage of active venv (possibly with an option to override that behaviour through a command line option) AND/OR
  2. Force creation of fresh isolated venv even if there is a venv already active (use active venv's base Python to create new venv)

Motivation

Currently, even if virtualenvs.create is set to true, poetry will still use the active venv. This has undesired consequences:

  1. poetry behavior is dependent on the environment it is running on (non-reproducible "builds")
  2. leads to accidental installation of project dependencies into unrelated venvs.

Scenario when it is a problem: in organizations that have monolithic codebase and use plain pip, developers may rely on a single venv for the whole repository. This venv is often set as a global one (for example through pyenv global). With such setup it is very hard to incrementally introduce a tool like poetry without a coordinated effort. Poetry does not provide isolated environment and it's behavior may be accidentally influenced by the environment it is running in.

@jrosiek jrosiek added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Aug 16, 2023
@dimbleby
Copy link
Contributor

duplicate #4055

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants