-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
-
Poetry version: 1.2.1
-
Python version: 3.9.10
-
OS version and name: Ubuntu 22.04
-
pyproject.toml: See below
-
I am on the latest stable Poetry version, installed using a recommended method.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
I have consulted the FAQ and blog for any relevant entries or release notes.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
My pyproject.toml contains a dependency to a company internal git repository such as following example:
[tool.poetry.dependencies]
mylib = {git = "https://SOME_GIT_CLONE_URL"}
This is only relevant to ensure that the configuration is asked whether the system git client should be used or not.
When setting the environment variable POETRY_EXPERIMENTAL_SYSTEM_GIT_CLIENT to true and then running a poetry install the environment variable is ignored and the internal git client library is used.
When setting the configuration experimental.system-git-client via poetry configto true and then running the same installation command the system git client is used now.
It seems that in the method is_using_legacy_client() of module poetry.vcs.git.backend the following line does not catch the value from the environment variable (due to the two separate .get() calls that do not fit to the single environment variable name).
Config.create().get("experimental", {}).get("system-git-client", False)
At other places the following line is used to get the "new-installer" from "experimental" values instead (which works AFAIK):
poetry.config.get("experimental.new-installer", False)
Maybe this can be fixed in a similar way?
Best regards
Lars