local: add followpaths to the cache key

FollowPaths is a special case of IncludePatterns and
should behave same way.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2018-07-17 12:27:57 -07:00
parent 628681f8e4
commit 132d08a1cc
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ func (ls *localSourceHandler) CacheKey(ctx context.Context, index int) (string,
SessionID string
IncludePatterns []string
ExcludePatterns []string
}{SessionID: sessionID, IncludePatterns: ls.src.IncludePatterns, ExcludePatterns: ls.src.ExcludePatterns})
FollowPaths []string
}{SessionID: sessionID, IncludePatterns: ls.src.IncludePatterns, ExcludePatterns: ls.src.ExcludePatterns, FollowPaths: ls.src.FollowPaths})
if err != nil {
return "", false, err
}