runtime: new execution engine
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user