1
0
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:
Carlos Alexandro Becker 2023-09-17 17:02:46 +00:00
parent 16d84c5973
commit 0fe02a136a
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -383,6 +383,7 @@ func TestFilterTags(t *testing.T) {
Git: config.Git{
IgnoreTags: []string{
".*-dev",
`{{printf ""}}`,
},
},
})