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

Guard against cyclic dependency graphs. #1317

Merged
merged 2 commits into from
Apr 5, 2021
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Apr 5, 2021

Pip can resolve through cycles at build time but Pex was failing to
match this at run time. Ensure we don't enter an infinite runtime
resolve loop in the presence of cycles and add a test that previously
failed with inifinite runtime recursion.

Fixes #1316

Pip can resolve through cycles at build time but Pex was failing to
match this at run time. Ensure we don't enter an infinite runtime
resolve loop in the presence of cycles and add a test that previously
failed with inifinite runtime recursion.

Fixes pex-tool#1316
@jsirois jsirois requested a review from Eric-Arellano April 5, 2021 15:07
@jsirois jsirois merged commit 78c7b01 into pex-tool:main Apr 5, 2021
@jsirois jsirois deleted the issues/1316 branch April 5, 2021 17:10
jsirois referenced this pull request in jsirois/pants Apr 22, 2021
The relevant changelog:

2.1.40
------

This release brings proper support for pyenv shim interpreter
identification as well as a bug fix for venv mode.

* Fix Pex venv mode to respect ``--strip-pex-env``. (pantsbuild#1329)
  `PR pantsbuild#1329 <https://github.com/pantsbuild/pex/pull/1329>`_

* Fix pyenv shim identification. (pantsbuild#1325)
  `PR pantsbuild#1325 <https://github.com/pantsbuild/pex/pull/1325>`_

2.1.39
------

A hotfix that fixes a bug present since 2.1.25 that results in infinite
recursion in PEX runtime resolves when handling dependency cycles.

* Guard against cyclic dependency graphs. (pantsbuild#1317)
  `PR pantsbuild#1317 <https://github.com/pantsbuild/pex/pull/1317>`_

Work towards pantsbuild#11946.

[ci skip-rust]
[ci skip-build-wheels]
jsirois referenced this pull request in pantsbuild/pants Apr 22, 2021
The relevant changelog:

2.1.40
------

This release brings proper support for pyenv shim interpreter
identification as well as a bug fix for venv mode.

* Fix Pex venv mode to respect ``--strip-pex-env``. (#1329)
  `PR #1329 <https://github.com/pantsbuild/pex/pull/1329>`_

* Fix pyenv shim identification. (#1325)
  `PR #1325 <https://github.com/pantsbuild/pex/pull/1325>`_

2.1.39
------

A hotfix that fixes a bug present since 2.1.25 that results in infinite
recursion in PEX runtime resolves when handling dependency cycles.

* Guard against cyclic dependency graphs. (#1317)
  `PR #1317 <https://github.com/pantsbuild/pex/pull/1317>`_

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

Successfully merging this pull request may close these issues.

Running opvault 0.4.9 pex leads to infinite recursion in setup tools
2 participants