Skip to content

fix(installer): fall back to official PyPI when mirror lags#1131

Merged
zhoujh01 merged 2 commits intomainfrom
fix/ov-install-pypi-fallback
Mar 31, 2026
Merged

fix(installer): fall back to official PyPI when mirror lags#1131
zhoujh01 merged 2 commits intomainfrom
fix/ov-install-pypi-fallback

Conversation

@qin-ctx
Copy link
Copy Markdown
Collaborator

@qin-ctx qin-ctx commented Mar 31, 2026

Description

Add a safe fallback for ov-install package installation when the default mirrors.volces.com index is behind official PyPI.

Related Issue

Fixes #1129

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • add a helper that retries pip install against official PyPI when the default mirror appears stale or temporarily unavailable
  • keep honoring an explicit PIP_INDEX_URL override so user-selected indexes are not changed implicitly
  • apply the same fallback logic to the normal, venv, and --break-system-packages install paths used by ov-install

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Manual verification:

  • node --check examples/openclaw-plugin/setup-helper/install.js

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

N/A

Additional Notes

The immediate user workaround remains:
PIP_INDEX_URL=https://pypi.org/simple/ ov-install -y

@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@zhoujh01 zhoujh01 merged commit 8f43fc6 into main Mar 31, 2026
11 checks passed
@zhoujh01 zhoujh01 deleted the fix/ov-install-pypi-fallback branch March 31, 2026 12:54
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: ov-install fails to install latest openviking when mirrors.volces.com lags behind PyPI

2 participants