Stop claiming a machine scope and a package index Pip never resolved - #5466
Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit intoOct 2, 2026
Merged
Conversation
4 tasks done
Copilot started reviewing on behalf of
Gabriel Dufresne (GabrielDuf)
October 2, 2026 14:44
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused mapping changes are consistent with Pip behavior and are adequately covered by tests.
Review effort: Balanced
Findings: None
What changed in this PR
Updates broker request mapping to reflect Pip’s scope and source semantics.
Changes:
- Omits Pip machine/global scope and source URLs from broker requests.
- Preserves Pip user scope and other managers’ existing behavior.
- Adds unit and broker capability-validation tests.
| File | Description |
|---|---|
src/UniGetUI.PackageEngine.AgentBroker/BrokerRequestBuilder.cs |
Adds Pip-specific scope and source URL mapping. |
src/UniGetUI.PackageEngine.Tests/BrokerRequestBuilderTests.cs |
Covers request mapping and broker capability checks. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🤖 Pull request was approved automatically: the AI review is complete and all its review threads are resolved. 🎉
Integration Details
{
"deliveryId": "efefe640-be6f-11f1-9cb6-5d836a2c28b4",
"headSha": "71080f859bc1550f6ad0f1f4feecd2bd61f5e215",
"reviewer": "copilot-pull-request-reviewer[bot]"
}
Gabriel Dufresne (GabrielDuf)
deleted the
fix/5437-pip-broker-scope-and-source
branch
October 2, 2026 15:09
4 tasks done
4 tasks done
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.
This pull request updates the
BrokerRequestBuilderlogic to better handle the specifics of the Pip package manager, especially regarding installation scope and source URL handling. It also adds comprehensive tests to ensure correct behavior for Pip and other managers.Key changes:
BrokerRequestBuilder logic improvements
MapScopeto accept themanagerparameter and returnnullforScope.Machineif the manager is Pip, as Pip does not distinguish system-wide installs. This prevents incorrectly setting the scope for Pip requests. [1] [2]Test coverage enhancements
Test utilities