From 2af8e09f211e6fda31a9a1cdf95719b49f6913ee Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Thu, 28 Sep 2023 16:36:59 +0300 Subject: [PATCH] REVERT: Check if version contains build ID (#189) Co-authored-by: Kevin Minehart --- pipelines/package_names.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pipelines/package_names.go b/pipelines/package_names.go index 12810d8e..7c04666c 100644 --- a/pipelines/package_names.go +++ b/pipelines/package_names.go @@ -51,12 +51,7 @@ func TarFilename(opts TarFileOpts) string { arch = strings.Join([]string{arch, archv}, "-") } - var p []string - if strings.Contains(opts.Version, opts.BuildID) { - p = []string{name, opts.Version, os, arch} - } else { - p = []string{name, opts.Version, opts.BuildID, os, arch} - } + p := []string{name, opts.Version, opts.BuildID, os, arch} return fmt.Sprintf("%s.tar.gz", strings.Join(p, "_")) }