diff --git a/cli/bpmetadata/tfconfig.go b/cli/bpmetadata/tfconfig.go index 89ba1d1ab574..d173f104aeb6 100644 --- a/cli/bpmetadata/tfconfig.go +++ b/cli/bpmetadata/tfconfig.go @@ -216,6 +216,8 @@ func parseBlueprintProviderVersions(versionsFile *hcl.File) ([]*ProviderVersion, Version: strings.Join(providerData.VersionConstraints, ", "), }) } + // Sort provider_versions + sort.SliceStable(v, func(i, j int) bool { return v[i].Source < v[j].Source }) return v, nil }