reworked repos (cache, registry) support - #83
Merged
Conversation
jryannel
force-pushed
the
jr-better-repos-support
branch
from
June 20, 2023 18:15
bf4983d to
42e91f5
Compare
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.
Reworked the installation of templates. It is split into cache and registry now. The split marked the logic much simpler.
To install a package from a name you need to first retrieve the info from the registry and the use the cache to install it using the git url from the info and correct version.
Template repos are always installed know using a version, if no version is given the latest version (tag) is used. It is not possible to install just main currently.
The repos are stored in the cache dir as
$org/$name@$version.When a solution contains a template with a version it will be checked if the template is already in the cache, if not it will be tried to installed.
So a template inside a solution layer:
Would install version v1.14 from the apigear-io/unreal-template from the registry.