chore: update gcr and docker cred helpers (#2910)

This commit is contained in:
Aaron Prindle
2023-12-19 12:36:13 -05:00
committed by GitHub
parent 6489eefaf0
commit dd752d9bbc
1231 changed files with 133904 additions and 18208 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ import (
"github.com/GoogleContainerTools/kaniko/pkg/config"
"github.com/GoogleContainerTools/kaniko/pkg/timing"
"github.com/docker/docker/pkg/archive"
"github.com/docker/docker/pkg/fileutils"
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/karrick/godirwalk"
"github.com/moby/buildkit/frontend/dockerfile/dockerignore"
"github.com/moby/patternmatcher"
otiai10Cpy "github.com/otiai10/copy"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
@@ -788,7 +788,7 @@ func (c FileContext) ExcludesFile(path string) bool {
return false
}
}
match, err := fileutils.Matches(path, c.ExcludedFiles)
match, err := patternmatcher.Matches(path, c.ExcludedFiles)
if err != nil {
logrus.Errorf("Error matching, including %s in build: %v", path, err)
return false