apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

reworked repos (cache, registry) support #83

Closed jryannel closed 1 year ago

jryannel commented 1 year ago

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:

layer:
  - template: apigear-io/unreal-template@v1.14

Would install version v1.14 from the apigear-io/unreal-template from the registry.