From bc9d81bd8eacd7af7377400ccf81d65ba56e060f Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sat, 23 Apr 2022 22:56:39 +0200 Subject: [PATCH] Strict branch mode should still include module streams --- pkg/misc/regex.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/misc/regex.go b/pkg/misc/regex.go index 1846a7d..6de142f 100644 --- a/pkg/misc/regex.go +++ b/pkg/misc/regex.go @@ -10,6 +10,8 @@ func GetTagImportRegex(pd *data.ProcessData) *regexp.Regexp { branchRegex := fmt.Sprintf("%s%d%s", pd.ImportBranchPrefix, pd.Version, pd.BranchSuffix) if !pd.StrictBranchMode { branchRegex += "(?:.+|)" + } else { + branchRegex += "(?:-stream-.+|)" } regex := fmt.Sprintf("refs/tags/(imports/(%s)/(.*))", branchRegex)