solver: move client to separate pkg

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2017-06-08 13:05:27 -07:00
parent 10c0daba25
commit d90d3cc683
1 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package solver
package llb
import (
"sort"
@ -9,8 +9,6 @@ import (
"github.com/tonistiigi/buildkit_poc/solver/pb"
)
const noOutput = -1
type Op interface {
Validate() error
Marshal() ([][]byte, error)
@ -173,7 +171,7 @@ func (eo *ExecOp) recursiveMarshal(list [][]byte, cache map[digest.Digest]struct
pm.Output = outputIndex
outputIndex++
} else {
pm.Output = noOutput
pm.Output = -1
}
peo.Mounts = append(peo.Mounts, pm)
}