rgst-io / stencil

📒 A modern living-template engine for evolving repositories
https://stencil.rgst.io
Apache License 2.0
5 stars 1 forks source link

refactor(modules): add module resolver #82

Closed jaredallard closed 3 months ago

jaredallard commented 3 months ago

Adds a module resolver library for the purposes of replacing the current version resolver used by the modules package. This does not hook it up yet, but provides us a scalable foundation for resolving versions.

Future PR(s) will change stencil to default to using versions found in the lockfile, as well as adding a stencil upgrade command to upgrade them.

The underlying resolver introduced in this PR supports simple constraint functionality to allow flexibility in its usage in stencil, but there is currently no plans to expose this functionality. Tests have been added to ensure that the following behaviour is followed:

cloudflare-workers-and-pages[bot] commented 3 months ago

Deploying stencil with  Cloudflare Pages  Cloudflare Pages

Latest commit: 17fbc7c
Status: ✅  Deploy successful!
Preview URL: https://2a9a64df.stencil-1wj.pages.dev
Branch Preview URL: https://jaredallard-refactor-modules-sreh.stencil-1wj.pages.dev

View logs

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 72.66667% with 41 lines in your changes missing coverage. Please review. Files Patch % Lines
internal/modules/resolver/resolver.go 82.64% 14 Missing and 7 partials :warning:
internal/git/git.go 31.03% 19 Missing and 1 partial :warning:

:loudspeaker: Thoughts on this report? Let us know!