mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-06 03:13:48 +02:00
fix(git): ignore_tags should ignore empty
This commit is contained in:
parent
16d84c5973
commit
0fe02a136a
@ -323,6 +323,9 @@ func filterOutTags(ctx *context.Context, tags []string) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if applied == "" {
|
||||
continue
|
||||
}
|
||||
re, err := regexp.Compile(applied)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -383,6 +383,7 @@ func TestFilterTags(t *testing.T) {
|
||||
Git: config.Git{
|
||||
IgnoreTags: []string{
|
||||
".*-dev",
|
||||
`{{printf ""}}`,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user