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

Fix ./pants repl to use global constraints when no targets specified (Cherry-pick of #10991) #10992

Merged
merged 1 commit into from Oct 19, 2020

Conversation

Eric-Arellano
Copy link
Contributor

[ci skip-rust]
[ci skip-build-wheels]

…pantsbuild#10991)

As pointed out in pantsbuild#10987, it's reasonable to expect that setting `--python-setup-interpreter-constraints` should influence the interpreter used when running `./pants repl` with no files/targets. Without this, we use empty constraints, and could end up choosing any interpreter, which is a bug.

Result:

```
▶ ./pants --python-setup-interpreter-constraints='["CPython==2.7.*"]' --python-setup-resolve-all-constraints=never repl
13:55:22.01 [INFO] Completed: Building requirements.pex
Python 2.7.16 (default, Jun  5 2020, 22:59:21)
```
This also fixes an invalid type for `--ipython-ignore-cwd`.

[ci skip-rust]
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano changed the title Fix ./pants repl to use global constrains when no targets specified (Cherry-pick of #10991) Fix ./pants repl to use global constraints when no targets specified (Cherry-pick of #10991) Oct 19, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 874b040 on Eric-Arellano:cp-repl into 5b805e4 on pantsbuild:2.0.x.

@Eric-Arellano Eric-Arellano merged commit b8d18d3 into pantsbuild:2.0.x Oct 19, 2020
@Eric-Arellano Eric-Arellano deleted the cp-repl branch October 19, 2020 22:48
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.

None yet

3 participants