aboutsummaryrefslogtreecommitdiff
path: root/builder
diff options
context:
space:
mode:
authorAaron Lehmann <alehmann@netflix.com>2021-08-12 18:09:12 -0700
committerAaron Lehmann <alehmann@netflix.com>2021-08-12 18:10:04 -0700
commit97ede9df264c08bcf752c70569d6c87fe5c9e98d (patch)
treee421018511714086e6c9660a76e7e4f7cd46328b /builder
parent9bae4f2f246154507aab9b0c5b779133723888a6 (diff)
Rename Matches to MatchesOrParentMatches
Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Diffstat (limited to 'builder')
-rw-r--r--builder/remotecontext/detect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/remotecontext/detect.go b/builder/remotecontext/detect.go
index 9b126ef775..09f4d28434 100644
--- a/builder/remotecontext/detect.go
+++ b/builder/remotecontext/detect.go
@@ -130,7 +130,7 @@ func removeDockerfile(c modifiableContext, filesToRemove ...string) error {
f.Close()
filesToRemove = append([]string{".dockerignore"}, filesToRemove...)
for _, fileToRemove := range filesToRemove {
- if rm, _ := fileutils.Matches(fileToRemove, excludes); rm {
+ if rm, _ := fileutils.MatchesOrParentMatches(fileToRemove, excludes); rm {
if err := c.Remove(fileToRemove); err != nil {
logrus.Errorf("failed to remove %s: %v", fileToRemove, err)
}