Skip to content

Commit

Permalink
Fix license ignore pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 15, 2024
1 parent 281978b commit ed3cac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/makefile/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ endif

ignoreOptions := []string{}
if cfg.GitHubWorkflow != nil {
for idx, pattern := range cfg.GitHubWorkflow.License.IgnorePatterns {
for _, pattern := range cfg.GitHubWorkflow.License.IgnorePatterns {
//quoting avoids glob expansion
ignoreOptions[idx] = fmt.Sprintf("-ignore %q", pattern)
ignoreOptions = append(ignoreOptions, fmt.Sprintf("-ignore %q", pattern))
}
}

Expand Down

0 comments on commit ed3cac9

Please sign in to comment.