runtime: new execution engine

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-11-24 16:22:33 -08:00
parent cdcb09126b
commit 2a4db167e4
9 changed files with 356 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ func Init(ctx context.Context, dir string) (*Project, error) {
return nil, err
}
if err := vendorUniverse(ctx, root); err != nil {
if err := VendorUniverse(ctx, root); err != nil {
return nil, err
}
@@ -390,7 +390,7 @@ func cueModInit(ctx context.Context, parentDir string) error {
return nil
}
func vendorUniverse(ctx context.Context, p string) error {
func VendorUniverse(ctx context.Context, p string) error {
// ensure cue module is initialized
if err := cueModInit(ctx, p); err != nil {
return err

View File

@@ -55,7 +55,7 @@ func (s *State) CompilePlan(ctx context.Context) (*compiler.Value, error) {
// 2) For backward compatibility: if the project was `dagger
// init`-ed before we added support for vendoring universe, it might not
// contain a `cue.mod`.
if err := vendorUniverse(ctx, w); err != nil {
if err := VendorUniverse(ctx, w); err != nil {
return nil, err
}