Skip to content

fix(install): self-heal a broken fallback pipx, mktemp for logs (#370 review) - #371

Merged
plind-junior merged 1 commit into
testfrom
fix/installer-review-followup
Jul 6, 2026
Merged

fix(install): self-heal a broken fallback pipx, mktemp for logs (#370 review)#371
plind-junior merged 1 commit into
testfrom
fix/installer-review-followup

Conversation

@plind-junior

Copy link
Copy Markdown
Member

addresses the two coderabbit findings on #370: a broken fallback pipx (dead private venv after e.g. a brew python upgrade) is no longer accepted by the has_cmd probe — a working pipx --version is required before the early return, and re-runs fall through to the recreation path (verified end-to-end by breaking the venv and re-running); and the pipx install log now comes from mktemp instead of a predictable /tmp path.

two #370 review findings:

- a leftover ~/.local/bin/pipx shim whose private venv died (e.g. a
  brew python upgrade) passed the has_cmd probe, so re-runs accepted
  the corpse as installed and never reached the recreation path.
  require a working `pipx --version` before returning early; verified
  end-to-end by breaking the venv and re-running.
- the install log used a predictable /tmp path, which a pre-created
  symlink could redirect over a user-writable file. mktemp instead.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 248a79fa-2373-4896-8f5b-dc75786b0a78

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/installer-review-followup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the size: XS less than 50 changed non-doc lines label Jul 6, 2026
@plind-junior
plind-junior merged commit e362807 into test Jul 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XS less than 50 changed non-doc lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant