update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
2
vendor/helm.sh/helm/v3/pkg/ignore/doc.go
vendored
2
vendor/helm.sh/helm/v3/pkg/ignore/doc.go
vendored
@@ -26,7 +26,7 @@ The formatting rules are as follows:
|
||||
|
||||
- Parsing is line-by-line
|
||||
- Empty lines are ignored
|
||||
- Lines the begin with # (comments) will be ignored
|
||||
- Lines that begin with # (comments) will be ignored
|
||||
- Leading and trailing spaces are always ignored
|
||||
- Inline comments are NOT supported ('foo* # Any foo' does not contain a comment)
|
||||
- There is no support for multi-line patterns
|
||||
|
||||
6
vendor/helm.sh/helm/v3/pkg/ignore/rules.go
vendored
6
vendor/helm.sh/helm/v3/pkg/ignore/rules.go
vendored
@@ -173,7 +173,7 @@ func (r *Rules) parseRule(rule string) error {
|
||||
|
||||
if strings.HasPrefix(rule, "/") {
|
||||
// Require path matches the root path.
|
||||
p.match = func(n string, fi os.FileInfo) bool {
|
||||
p.match = func(n string, _ os.FileInfo) bool {
|
||||
rule = strings.TrimPrefix(rule, "/")
|
||||
ok, err := filepath.Match(rule, n)
|
||||
if err != nil {
|
||||
@@ -184,7 +184,7 @@ func (r *Rules) parseRule(rule string) error {
|
||||
}
|
||||
} else if strings.Contains(rule, "/") {
|
||||
// require structural match.
|
||||
p.match = func(n string, fi os.FileInfo) bool {
|
||||
p.match = func(n string, _ os.FileInfo) bool {
|
||||
ok, err := filepath.Match(rule, n)
|
||||
if err != nil {
|
||||
log.Printf("Failed to compile %q: %s", rule, err)
|
||||
@@ -193,7 +193,7 @@ func (r *Rules) parseRule(rule string) error {
|
||||
return ok
|
||||
}
|
||||
} else {
|
||||
p.match = func(n string, fi os.FileInfo) bool {
|
||||
p.match = func(n string, _ os.FileInfo) bool {
|
||||
// When there is no slash in the pattern, we evaluate ONLY the
|
||||
// filename.
|
||||
n = filepath.Base(n)
|
||||
|
||||
Reference in New Issue
Block a user