diff --git a/internal/locale/locales/en-us.yaml b/internal/locale/locales/en-us.yaml index 3bdcb21aad..c289b7eff8 100644 --- a/internal/locale/locales/en-us.yaml +++ b/internal/locale/locales/en-us.yaml @@ -1344,6 +1344,8 @@ namespace_label_platform: other: "Platform" namespace_label_preplatform: other: "Bits" +namespace_label_packager: + other: "Docker/Installer packagers" print_commit: other: "[NOTICE]commit {{.V0}}[/RESET]" print_commit_author: diff --git a/pkg/cmdlets/commit/commit.go b/pkg/cmdlets/commit/commit.go index 6512a0ca5d..678387c107 100644 --- a/pkg/cmdlets/commit/commit.go +++ b/pkg/cmdlets/commit/commit.go @@ -105,6 +105,14 @@ func FormatChanges(commit *mono_models.Commit) ([]string, []*requirementChange) versionConstraints = "" } + // This is a temporary fix until we start getting history in the form of build expressions + // https://activestatef.atlassian.net/browse/DX-2197 + if model.NamespaceMatch(change.Namespace, model.NamespaceBuildFlagsMatch) && + (strings.Contains(change.Requirement, "docker") || strings.Contains(change.Requirement, "installer")) { + requirement = locale.T("namespace_label_packager") + versionConstraints = "" + } + var result, oldConstraints, newConstraints string switch change.Operation { case string(model.OperationAdded): diff --git a/pkg/platform/model/vcs.go b/pkg/platform/model/vcs.go index c82b7e160f..f42acd88de 100644 --- a/pkg/platform/model/vcs.go +++ b/pkg/platform/model/vcs.go @@ -85,6 +85,9 @@ const ( // NamespaceSharedMatch is the namespace used for shared requirements (usually runtime libraries) NamespaceSharedMatch = `^shared$` + + // NamespaceBuildFlagsMatch is the namespace used for passing build flags + NamespaceBuildFlagsMatch = `^build-flags$` ) type TrackingType string