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 --pip-log re-use. #2570

Merged
merged 6 commits into from
Oct 25, 2024
Merged

Fix --pip-log re-use. #2570

merged 6 commits into from
Oct 25, 2024

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Oct 23, 2024

Previously, when only 1 resolve target was specified, a --pip-log
would be re-used which would append the current Pip log outout with the
prior output. For a normal PEX build, this was potentially confusing,
but for a pex3 lock command it could lead to errors since the log is
used to generate the lock.

Fixes #2568

Previously, when only 1 resolve target was specified, a `--pip-log`
would be re-used which would append the current Pip log outout with the
prior output. For a normal PEX build, this was potentially confusing,
but for a `pex3 lock` command it could lead to errors since the log is
used to generate the lock.

Fixes pex-tool#2568
@jsirois jsirois requested a review from benjyw October 23, 2024 21:29
lock = tmpdir.join("lock.json")
log = tmpdir.join("pip.log")
run_pex3(
"lock", "sync", "--lock", lock, "--pip-log", log, "ansicolors==1.1.8", "cowsay==6.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N.B.: This is the issue OP test, but with cowsay 6.0 instead of 6.1 so the Python 2.7 tests work.

@jsirois jsirois merged commit def5f93 into pex-tool:main Oct 25, 2024
23 checks passed
@jsirois jsirois deleted the issues/2568 branch October 25, 2024 01:50
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.

Spurious lockfile sync errors when writing to a known pip log file
2 participants