diff --git a/helm/private/packager/packager.go b/helm/private/packager/packager.go index 395d593..8efcecd 100644 --- a/helm/private/packager/packager.go +++ b/helm/private/packager/packager.go @@ -534,7 +534,7 @@ func findGeneratedPackage(logging string) (string, error) { } func writeResultsMetadata(packageBase string, metadataOutput string) error { - re := regexp.MustCompile(`(.*)-([\d][\d\w\-\.]+)\.tgz`) + re := regexp.MustCompile(`(.*)-([\d][\d\w\-\.+]+)\.tgz`) match := re.FindAllStringSubmatch(packageBase, 2) if len(match) == 0 { diff --git a/tests/version_stamp/Chart.yaml b/tests/version_stamp/Chart.yaml index 75b8295..4666f1d 100644 --- a/tests/version_stamp/Chart.yaml +++ b/tests/version_stamp/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "0.1.0-{STABLE_STAMP_VALUE}-{VOLATILE_STAMP_VALUE}" +version: "0.1.0+{STABLE_STAMP_VALUE}-{VOLATILE_STAMP_VALUE}" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/tests/version_stamp/version_stamp_unit_test.bzl b/tests/version_stamp/version_stamp_unit_test.bzl index 0990fea..e0b6d7e 100644 --- a/tests/version_stamp/version_stamp_unit_test.bzl +++ b/tests/version_stamp/version_stamp_unit_test.bzl @@ -59,7 +59,7 @@ def version_stamp_test_suite(name): content = """\ { "name": "version_stamp", - "version": "0.1.0-STABLE-STAMP-VALUE-VOLATILE-STAMP-VALUE" + "version": "0.1.0+STABLE-STAMP-VALUE-VOLATILE-STAMP-VALUE" } """.splitlines(), newline = "unix", @@ -77,7 +77,7 @@ def version_stamp_test_suite(name): content = """\ { "name": "version_stamp", - "version": "0.1.0-stable-volatile" + "version": "0.1.0+stable-volatile" } """.splitlines(), newline = "unix",