9d1e7e2acc
Signed-off-by: Solomon Hykes <solomon@dagger.io>
21 lines
379 B
Go
21 lines
379 B
Go
package task
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.dagger.io/dagger/compiler"
|
|
"go.dagger.io/dagger/plancontext"
|
|
"go.dagger.io/dagger/solver"
|
|
)
|
|
|
|
func init() {
|
|
Register("Nop", func() Task { return &nopTask{} })
|
|
}
|
|
|
|
type nopTask struct {
|
|
}
|
|
|
|
func (t *nopTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.Solver, v *compiler.Value) (*compiler.Value, error) {
|
|
return v, nil
|
|
}
|