Skip to content

Commit a0b08e9

Browse files
committed
Fixing ignorePatterns unmarshaling panic
The `github.com/jessevdk/go-flags` package uses its own `Unmarshaler` interface instead of `flag.Value`.
1 parent c459437 commit a0b08e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (p ignorePatterns) String() string {
2323
return strings.Join(ss, ",")
2424
}
2525

26-
func (p *ignorePatterns) Set(s string) error {
26+
func (p *ignorePatterns) UnmarshalFlag(s string) error {
2727
pattern, err := glob.Compile(s)
2828
if err != nil {
2929
return err

0 commit comments

Comments
 (0)