Repository navigation
ci: skip upgrading brew-managed pip on macOS runner - #23
Merged
Merged
Conversation
The macOS step ran `pip3 install -U pip setuptools`, which aborts on the GitHub-hosted macOS runner: Homebrew's `python@3` installs pip without a RECORD file, so `pip install -U pip` cannot uninstall the old pip first: error: uninstall-no-record-file Cannot uninstall pip 26.1.2 The package's contents are unknown: no RECORD file was found for pip. pynvim does not require a newer pip, so the upgrade is unnecessary; dropping it avoids the brew-managed-pip uninstall entirely. The identical commit passed on the pull_request run (07-29) yet failed on the push-to-main run (08-01) -- environmental, not a code regression. Between those dates the GitHub macOS runner image bumped brew's `python@3` formula; the newer pip (26.1.2) it ships lacks the RECORD file the upgrade path needs. The PR run hit the older image where the upgrade still worked. Before: pip3 install -U pip setuptools --break-system-packages -> error: uninstall-no-record-file (Cannot uninstall pip 26.1.2) After: pynvim installs on brew's stock pip; no pip upgrade attempted. Assisted-by: Claude Code (GLM-5.2) <claude@anthropic.com> Signed-off-by: Junbo Zheng <3273070@qq.com>
Collaborator
Author
|
@xaljer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The macOS dependency-install step ran
pip3 install -U pip setuptools,which aborts on the GitHub-hosted macOS runner. Homebrew's
python@3formula installs pip without a RECORD file, so
pip install -U pipcannot uninstall the existing pip first:
pynvimdoes not require a newer pip, so the upgrade is unnecessary.This drops the upgrade line so the brew-managed pip is left untouched
and
pynviminstalls against stock pip.The failure is environmental, not a code regression: the same install
step passed on the
pull_requestrun (07-29) but failed on thepush-to-main run (08-01). Between those dates the GitHub macOS runnerimage bumped brew's
python@3formula; the newer pip (26.1.2) it shipslacks the RECORD file the upgrade path needs.
Impact
affects the CI install workflow.
install plugins from scratchworkflow's macOS job nolonger attempts a pip upgrade that fails on the brew-managed
environment. Linux jobs are unchanged.
pynvimstill installs; onlythe redundant pip/setuptools self-upgrade is removed.
Testing
Verified via the
install plugins from scratchGitHub Actions workflowon this branch. The macOS job previously failed at the dependency step
with
error: uninstall-no-record-file (Cannot uninstall pip 26.1.2);with the upgrade line removed,
pip3 install pynvim --break-system-packagessucceeds on brew's stock pip and the job proceeds. Ubuntu jobs continue
to pass unchanged.
Before:
pip3 install -U pip setuptools --break-system-packages -> error: uninstall-no-record-file (Cannot uninstall pip 26.1.2)After:
pynvim installs on brew's stock pip; no pip upgrade attempted.Signed-off-by: Junbo Zheng 3273070@qq.com