Skip to content

fix: pip install update is a silent no-op for pipx installs (#610) - #612

Open
Pavankalyan32 wants to merge 1 commit into
Panniantong:mainfrom
Pavankalyan32:fix/pipx-update-instructions
Open

fix: pip install update is a silent no-op for pipx installs (#610)#612
Pavankalyan32 wants to merge 1 commit into
Panniantong:mainfrom
Pavankalyan32:fix/pipx-update-instructions

Conversation

@Pavankalyan32

Copy link
Copy Markdown

Closes #610

Problem

\docs/update.md\ Step 2 and the \check-update\ output (_UPDATE_INSTRUCTIONS) tell users to run \pip install --upgrade . For pipx installs (the officially recommended method), this is a silent no-op: pip updates user/system site-packages, but the \�gent-reach\ executable points at the pipx venv - the version never changes and no error is shown.

Fix

Detect the install method and emit the matching update command:

  • pipx installs -> \pipx upgrade agent-reach\ (pipx reinstalls from its recorded main.zip source)
  • pip installs -> existing \pip install --upgrade \
  • venv installs -> same pip command, with the PEP 668 note already covering activation

Changes

  • \�gent_reach/cli.py: _detect_install_method()\ + _update_instructions()\ replacing the static _UPDATE_INSTRUCTIONS\ constant (used by \check-update\ and \watch)
  • \docs/update.md: Step 2 now detects the install method first
  • \ ests/test_cli.py: 5 new tests covering pipx / venv / pip detection and instruction output

Verification

  • \pytest tests/test_cli.py tests/test_p0_cli.py\ -> 81 passed

…tong#610)

pip install --upgrade <archive-url> updates user/system site-packages but
not the pipx venv the agent-reach executable points at - silently failing
with no error. Detect the install method and emit the matching command:

- pipx installs: pipx upgrade agent-reach
- otherwise: existing pip install --upgrade (venv case covered by the
  PEP 668 note)

Changes:
- cli.py: _detect_install_method() + _update_instructions() replacing the
  static _UPDATE_INSTRUCTIONS constant (check-update/watch output)
- docs/update.md: Step 2 detects install method before updating
- tests: cover pipx/venv/pip detection and instruction output
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.

docs: update.md 的 pip install 更新命令对 pipx 安装静默无效(不报错也不生效)

1 participant