aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-10-29 10:33:41 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-10-29 18:02:20 +0100
commit5fa26ec9b5e628709d1cc0217a0c5e0a43590191 (patch)
treec254e9e5d3e73e99be8f385a3ae800d58c09f5f7 /tools
parent1c1aefffdaaaea2acc1c36145b0a26c4593a2a41 (diff)
tools/syz-kconf: detect -rcN tags
We currently detect v5.10-rc1 as v5.9 because we ignore -rc tags. This makes it impossible to enable configs that were already added for v5.10. Treat v5.10-rc1 as v5.10 already.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-kconf/kconf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-kconf/kconf.go b/tools/syz-kconf/kconf.go
index 841366146..862e4ff45 100644
--- a/tools/syz-kconf/kconf.go
+++ b/tools/syz-kconf/kconf.go
@@ -323,7 +323,7 @@ func (ctx *Context) setTarget() error {
func (ctx *Context) setReleaseFeatures() error {
tag := ctx.ReleaseTag
- match := regexp.MustCompile(`^v([0-9]+)\.([0-9]+)(?:\.([0-9]+))?$`).FindStringSubmatch(tag)
+ match := regexp.MustCompile(`^v([0-9]+)\.([0-9]+)(?:-rc([0-9]+))?(?:\.([0-9]+))?$`).FindStringSubmatch(tag)
if match == nil {
return fmt.Errorf("bad release tag %q", tag)
}