Skip to content

Commit e9e6cec

Browse files
author
Aaron Lehmann
committed
Use getFollowLinksWalked
Signed-off-by: Aaron Lehmann <[email protected]>
1 parent 98f54ff commit e9e6cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cache/contenthash/checksum.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@ func wildcardPrefix(root *iradix.Node, p string) (string, []byte, bool, error) {
695695
return "", nil, false, nil
696696
}
697697

698-
k, cr, err := getFollowLinks(root, convertPathToKey([]byte(d1)), true)
698+
linksWalked := 0
699+
k, cr, err := getFollowLinksWalk(root, convertPathToKey([]byte(d1)), true, &linksWalked)
699700
if err != nil {
700701
return "", k, false, err
701702
}
@@ -704,7 +705,6 @@ func wildcardPrefix(root *iradix.Node, p string) (string, []byte, bool, error) {
704705
// getFollowLinks only handles symlinks in path
705706
// components before the last component, so
706707
// handle last component in d1 specially.
707-
linksWalked := 0
708708
resolved := string(convertKeyToPath(k))
709709
for {
710710
v, ok := root.Get(k)

0 commit comments

Comments
 (0)