Skip to content

Commit 99873ac

Browse files
committed
change default of installer.re-resolve from true to false
1 parent 6265bc4 commit 99873ac

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

docs/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,12 @@ This setting has no effect if the server does not support HTTP range requests.
353353

354354
**Type**: `boolean`
355355

356-
**Default**: `true`
356+
**Default**: `false`
357357

358358
**Environment Variable**: `POETRY_INSTALLER_RE_RESOLVE`
359359

360+
*Changed default from `true` to `false` in 2.3.0*
361+
360362
*Introduced in 2.0.0*
361363

362364
If the config option is _not_ set and the lock file is at least version 2.1

docs/dependency-specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ The first example will only work completely if you configure Poetry to not re-re
599599
poetry config installer.re-resolve false
600600
```
601601

602-
This is a new feature of Poetry 2.0 that may become the default in a future version of Poetry.
602+
This was a new feature of Poetry 2.0 and became the default behavior in Poetry 2.3.
603603

604604
{{% /warning %}}
605605

src/poetry/config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Config:
164164
"max-retries": 0,
165165
},
166166
"installer": {
167-
"re-resolve": True,
167+
"re-resolve": False,
168168
"parallel": True,
169169
"max-workers": None,
170170
"no-binary": None,

src/poetry/installation/installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _do_install(self) -> int:
216216
from poetry.puzzle.solver import Solver
217217

218218
locked_repository = Repository("poetry-locked")
219-
reresolve = self._config.get("installer.re-resolve", True)
219+
reresolve = self._config.get("installer.re-resolve", False)
220220
solved_packages: dict[Package, TransitivePackageInfo] = {}
221221
lockfile_repo = LockfileRepository()
222222

tests/console/commands/test_config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_list_displays_default_value_if_not_set(
7070
installer.no-binary = null
7171
installer.only-binary = null
7272
installer.parallel = true
73-
installer.re-resolve = true
73+
installer.re-resolve = false
7474
keyring.enabled = true
7575
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
7676
requests.max-retries = 0
@@ -105,7 +105,7 @@ def test_list_displays_set_get_setting(
105105
installer.no-binary = null
106106
installer.only-binary = null
107107
installer.parallel = true
108-
installer.re-resolve = true
108+
installer.re-resolve = false
109109
keyring.enabled = true
110110
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
111111
requests.max-retries = 0
@@ -161,7 +161,7 @@ def test_unset_setting(
161161
installer.no-binary = null
162162
installer.only-binary = null
163163
installer.parallel = true
164-
installer.re-resolve = true
164+
installer.re-resolve = false
165165
keyring.enabled = true
166166
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
167167
requests.max-retries = 0
@@ -195,7 +195,7 @@ def test_unset_repo_setting(
195195
installer.no-binary = null
196196
installer.only-binary = null
197197
installer.parallel = true
198-
installer.re-resolve = true
198+
installer.re-resolve = false
199199
keyring.enabled = true
200200
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
201201
requests.max-retries = 0
@@ -330,7 +330,7 @@ def test_list_displays_set_get_local_setting(
330330
installer.no-binary = null
331331
installer.only-binary = null
332332
installer.parallel = true
333-
installer.re-resolve = true
333+
installer.re-resolve = false
334334
keyring.enabled = true
335335
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
336336
requests.max-retries = 0
@@ -373,7 +373,7 @@ def test_list_must_not_display_sources_from_pyproject_toml(
373373
installer.no-binary = null
374374
installer.only-binary = null
375375
installer.parallel = true
376-
installer.re-resolve = true
376+
installer.re-resolve = false
377377
keyring.enabled = true
378378
python.installation-dir = {json.dumps(str(Path("{data-dir}/python")))} # {config_data_dir / "python"}
379379
repositories.foo.url = "https://foo.bar/simple/"

0 commit comments

Comments
 (0)