Implement package Provides capability.#195
Merged
nguyen-phillip merged 9 commits intogoogle:masterfrom Feb 6, 2026
Merged
Conversation
Adds support for virtual package provision and alternative dependency satisfaction. Changes: - goolib: Add Provides field to PkgSpec. - install: Implement isSatisfied to resolve dependencies via providers. - install: Update conflict resolution to check providers. - client: Add FindSatisfyingRepoLatest for repo-side provider resolution, prioritizing direct name matches over providers. - system: Add system_darwin.go stubs for macOS compatibility. - tests: Add comprehensive unit and integration tests for new logic.
nguyen-phillip
requested changes
Feb 4, 2026
- Consolidate package search logic to support both direct and provider matches. - Update search functions to return full package specification. - Export provider satisfaction logic for reuse across packages. - Refactor install and cli packages to use updated client API.
- Use strings.Cut in client.SatisfiesProvider and simplify version checks - Deduplicate provider logic in install package by reusing client.SatisfiesProvider
nguyen-phillip
approved these changes
Feb 5, 2026
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.
Adds support for virtual package provision and alternative dependency satisfaction.
Changes: