From 5355dd9b14444129d3deaf26bdf3baff20baad0e Mon Sep 17 00:00:00 2001 From: finswimmer Date: Thu, 23 Oct 2025 15:32:36 +0200 Subject: [PATCH 1/2] fix(console): data-dir cannot be set --- src/poetry/console/commands/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/poetry/console/commands/config.py b/src/poetry/console/commands/config.py index 88fa3f00103..1cdd580b40b 100644 --- a/src/poetry/console/commands/config.py +++ b/src/poetry/console/commands/config.py @@ -76,6 +76,7 @@ class ConfigCommand(Command): def unique_config_values(self) -> dict[str, tuple[Any, Any]]: unique_config_values = { "cache-dir": (str, lambda val: str(Path(val))), + "data-dir": (str, lambda val: str(Path(val))), "virtualenvs.create": (boolean_validator, boolean_normalizer), "virtualenvs.in-project": (boolean_validator, boolean_normalizer), "virtualenvs.options.always-copy": (boolean_validator, boolean_normalizer), From 924fbd9b93d6688abd6580e3e892c7086f57fbc4 Mon Sep 17 00:00:00 2001 From: finswimmer Date: Thu, 23 Oct 2025 15:37:25 +0200 Subject: [PATCH 2/2] fix(console): python.installation-dir cannot be set --- src/poetry/console/commands/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/poetry/console/commands/config.py b/src/poetry/console/commands/config.py index 1cdd580b40b..60eaa33b046 100644 --- a/src/poetry/console/commands/config.py +++ b/src/poetry/console/commands/config.py @@ -103,6 +103,7 @@ def unique_config_values(self) -> dict[str, tuple[Any, Any]]: ), "solver.lazy-wheel": (boolean_validator, boolean_normalizer), "keyring.enabled": (boolean_validator, boolean_normalizer), + "python.installation-dir": (str, lambda val: str(Path(val))), } return unique_config_values