Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a more specialized trait for module resolution #109

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

rtimush
Copy link
Collaborator

@rtimush rtimush commented Oct 30, 2023

Instead of an implementation-focused RepositoryCache, create a usecase-focused ModuleResolver trait. This trait allows other implementations (specifically, it should be possible to resolve dependencies using the existing lock-file) and it also allows more efficient implementation (not part of this PR, but in general we don't need to fetch all heads if we know the exact revision).

The RepositoryCache is still there, although with fewer methods, as it is also used when copying proto files.

@rtimush rtimush requested a review from a team October 30, 2023 13:53
@rtimush rtimush merged commit b118932 into master Oct 30, 2023
12 checks passed
@rtimush rtimush deleted the resolver-trait branch October 30, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants