diff --git a/solver/ops.go b/solver/llb/llb.go similarity index 98% rename from solver/ops.go rename to solver/llb/llb.go index f1bacc54..04fd6613 100644 --- a/solver/ops.go +++ b/solver/llb/llb.go @@ -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) }