From 67fca665540e8fc83a0826d45ae54ecba36748ad Mon Sep 17 00:00:00 2001 From: Lonng Date: Wed, 29 Jul 2020 16:11:26 +0800 Subject: [PATCH] Dont hint user to update component when user specify version (#640) Signed-off-by: Lonng --- pkg/exec/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exec/run.go b/pkg/exec/run.go index 8b29c96914..b4148e38c7 100644 --- a/pkg/exec/run.go +++ b/pkg/exec/run.go @@ -145,7 +145,7 @@ func PrepareCommand( return nil, err } - if len(checkUpdate) > 0 && checkUpdate[0] { + if version.IsEmpty() && len(checkUpdate) > 0 && checkUpdate[0] { latestV, _, err := env.V1Repository().LatestStableVersion(component) if err != nil { return nil, err