-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Effectively, if a pattern is supplied and no existing tags are found an error is always returned.
Lines 45 to 54 in 0b3a780
| g, err := glob.Compile(pattern) | |
| if err != nil { | |
| return "", err | |
| } | |
| for _, tag := range tags { | |
| if g.Match(tag) { | |
| return tag, nil | |
| } | |
| } | |
| return "", fmt.Errorf("no tags match '%s'", pattern) |
Whereas if no pattern is supplied, it is not an error to find no tags:
Lines 38 to 40 in 0b3a780
| if len(tags) == 0 { | |
| return "", nil | |
| } |
jeloba, kamilwilk and sdurrheimer
Metadata
Metadata
Assignees
Labels
No labels