2018-05-15 18:21:08 -04:00
|
|
|
package buildkit
|
|
|
|
|
|
|
|
import (
|
2018-05-25 18:18:44 -04:00
|
|
|
"context"
|
2018-05-15 18:21:08 -04:00
|
|
|
"errors"
|
2018-05-25 18:18:44 -04:00
|
|
|
"io"
|
2018-05-15 18:21:08 -04:00
|
|
|
|
2018-08-02 17:24:34 -04:00
|
|
|
"github.com/docker/libnetwork"
|
2018-05-25 18:18:44 -04:00
|
|
|
"github.com/moby/buildkit/cache"
|
2018-05-15 18:21:08 -04:00
|
|
|
"github.com/moby/buildkit/executor"
|
|
|
|
)
|
|
|
|
|
2019-02-28 03:12:55 -05:00
|
|
|
func newExecutor(_, _ string, _ libnetwork.NetworkController, _ bool) (executor.Executor, error) {
|
2018-05-25 18:18:44 -04:00
|
|
|
return &winExecutor{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type winExecutor struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *winExecutor) Exec(ctx context.Context, meta executor.Meta, rootfs cache.Mountable, mounts []executor.Mount, stdin io.ReadCloser, stdout, stderr io.WriteCloser) error {
|
|
|
|
return errors.New("buildkit executor not implemented for windows")
|
2018-05-15 18:21:08 -04:00
|
|
|
}
|