diff --git a/default.json b/default.json index 84ac91f..c45a9fb 100644 --- a/default.json +++ b/default.json @@ -161,7 +161,8 @@ " +(?:name|'name'|\"name\") *: +golang/go@(go)?(?[^'\" \\n]+)", " +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?[^'\" \\n]+)'", " +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?[^'\" \\n]+)\"" - ] + ], + "versioningTemplate": "regex:^(?\\d+)\\.(?\\d+)\\.?(?\\d+)?$" }, { "datasourceTemplate": "github-releases", diff --git a/file.json b/file.json index e565d30..826d8b0 100644 --- a/file.json +++ b/file.json @@ -69,7 +69,8 @@ " +(?:name|'name'|\"name\") *: +golang/go@(go)?(?[^'\" \\n]+)", " +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?[^'\" \\n]+)'", " +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?[^'\" \\n]+)\"" - ] + ], + "versioningTemplate": "regex:^(?\\d+)\\.(?\\d+)\\.?(?\\d+)?$" }, { "datasourceTemplate": "github-releases", diff --git a/golang-go.json b/golang-go.json index 017a659..e335803 100644 --- a/golang-go.json +++ b/golang-go.json @@ -14,7 +14,8 @@ " +(?:name|'name'|\"name\") *: +golang/go@(go)?(?[^'\" \\n]+)", " +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?[^'\" \\n]+)'", " +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?[^'\" \\n]+)\"" - ] + ], + "versioningTemplate": "regex:^(?\\d+)\\.(?\\d+)\\.?(?\\d+)?$" } ] } diff --git a/jsonnet/utils.libsonnet b/jsonnet/utils.libsonnet index 0e3fdcc..6524f07 100644 --- a/jsonnet/utils.libsonnet +++ b/jsonnet/utils.libsonnet @@ -89,6 +89,7 @@ golangGo: $.prefixRegexManager("golang/go", "(go)?") + { extractVersionTemplate: "^go(?.*)$", datasourceTemplate: "github-tags", + versioningTemplate: "regex:^(?\\d+)\\.(?\\d+)\\.?(?\\d+)?$", }, gopls: $.prefixRegexManager("golang/tools/gopls", "gopls/") + { packageNameTemplate: "golang/tools",