From 297649ba2952912d0dcdca57aea22827dc7f41e2 Mon Sep 17 00:00:00 2001 From: Allen Zhong Date: Wed, 7 Apr 2021 19:01:54 +0800 Subject: [PATCH] fix: workaround for nightly versions in checkConfig() (#1281) Co-authored-by: SIGSEGV --- pkg/cluster/spec/server_config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/spec/server_config.go b/pkg/cluster/spec/server_config.go index 9ae35a9fa0..92ed98c305 100644 --- a/pkg/cluster/spec/server_config.go +++ b/pkg/cluster/spec/server_config.go @@ -274,9 +274,14 @@ func checkConfig(ctx context.Context, e ctxt.Executor, componentName, clusterVer return perrs.Annotate(ErrorCheckConfig, err.Error()) } + clsVer := utils.Version(clusterVersion) ver := clusterVersion + if clsVer.IsNightly() { + ver = utils.NightlyVersionAlias + } + // FIXME: workaround for nightly versions, need refactor if bindVersion != nil { - ver = bindVersion(componentName, clusterVersion) + ver = bindVersion(componentName, ver) } entry, err := repo.ComponentBinEntry(componentName, ver)