Skip to content

Retry pip user installs before breaking system packages#4569

Draft
Nacai (B67687) wants to merge 1 commit intoDevolutions:mainfrom
B67687:fix/pip-user-before-break-system-packages
Draft

Retry pip user installs before breaking system packages#4569
Nacai (B67687) wants to merge 1 commit intoDevolutions:mainfrom
B67687:fix/pip-user-before-break-system-packages

Conversation

@B67687
Copy link
Copy Markdown

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

This adjusts the pip retry flow for externally managed environments.

When pip reports externally-managed-environment, UniGetUI currently retries immediately with --break-system-packages. This change makes the first retry use --user instead, and only falls back to --break-system-packages if the user-scoped retry still cannot proceed.

That keeps the existing fallback in place, but prefers the less invasive pip path first.

Validation:

  • Local source snapshot reviewed against the current main branch.
  • I could not run dotnet build locally because the repository pins .NET SDK 10.0.103 in global.json, while this environment only has 6.0.428 installed.

Follow-up to #4542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant