metacall / builder

An advanced build system based on Buildkit in order to generate compact Docker images with MetaCall runtime.
Apache License 2.0
4 stars 7 forks source link

MetaCall Core clone is not efficient and it does not have a configurable version #5

Closed viferga closed 2 years ago

viferga commented 2 years ago

In this line: https://github.com/metacall/builder/blob/989a6ae8df2e1c1a77e62365f11e03263dedab45/main.go#L173

Use this instead:

git clone --depth 1 --single-branch --branch=develop https://github.com/metacall/core.git

And if the user specifies a different version:

git clone --depth 1 --single-branch --branch=v0.5.2 https://github.com/metacall/core.git

Set the version CLI option as develop by default.