Merge pull request #103 from tonistiigi/selector

contenthash: use selector for content path
docker-18.09
Akihiro Suda 2017-08-26 21:48:49 -05:00 committed by GitHub
commit 355a52d632
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package solver
import (
"encoding/json"
"fmt"
"path"
"sort"
"strings"
@ -142,7 +143,7 @@ func (e *execOp) ContentKeys(ctx context.Context, inputs [][]digest.Digest, refs
for _, m := range e.op.Mounts {
if m.Input != pb.Empty {
if m.Dest != pb.RootMount {
srcs[int(m.Input)] = "/" // TODO: selector
srcs[int(m.Input)] = path.Join("/", m.Selector)
skip = false
} else {
rootIndex = int(m.Input)