embedded stdlib

This PR embeds the stdlib into the dagger binary itself for convenience.
Long term we will want to source the stdlib directly from git.

- Updated go to 1.16 to use the new built-in embedding functionality
- The `stdlib` go package now contains an embed of the stdlib

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-02-16 17:54:43 -08:00
parent 31f1cd9f1d
commit 5ba6dd1617
13 changed files with 85 additions and 108 deletions

View File

@@ -13,10 +13,6 @@ import (
"dagger.cloud/go/dagger/cc"
)
var (
ErrAbortExecution = errors.New("execution stopped")
)
// An execution pipeline
type Pipeline struct {
s Solver
@@ -114,11 +110,11 @@ func (p *Pipeline) Do(ctx context.Context, code ...*cc.Value) error {
if err := op.IsConcreteR(); err != nil {
log.
Ctx(ctx).
Debug().
Warn().
Str("original_cue_error", err.Error()).
Int("op", idx).
Msg("script is missing inputs and has not been fully executed")
return ErrAbortExecution
Msg("pipeline was partially executed because of missing inputs")
return nil
}
if err := p.doOp(ctx, op); err != nil {
return err