From 27c3dc1f97e1e09015849b3ac0fb915d3a263ac3 Mon Sep 17 00:00:00 2001 From: Nick Kubala Date: Tue, 4 Aug 2020 12:37:51 -0700 Subject: [PATCH] Disable survey prompt until the next release --- pkg/skaffold/survey/survey.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/skaffold/survey/survey.go b/pkg/skaffold/survey/survey.go index ef85b02b65a..54b1ee4ab6f 100644 --- a/pkg/skaffold/survey/survey.go +++ b/pkg/skaffold/survey/survey.go @@ -22,10 +22,12 @@ import ( "io" "os" + "github.com/blang/semver" "github.com/pkg/browser" "github.com/sirupsen/logrus" "github.com/GoogleContainerTools/skaffold/pkg/skaffold/config" + "github.com/GoogleContainerTools/skaffold/pkg/skaffold/version" ) const ( @@ -62,6 +64,14 @@ func New(configFile string) *Runner { } func (s *Runner) DisplaySurveyPrompt(out io.Writer) error { + // TODO(nkubala): remove after v1.14.0 is released + currentVersion, err := version.ParseVersion(version.Get().Version) + if err == nil { + nextRelease := semver.MustParse("1.14.0") + if currentVersion.LT(nextRelease) { + return nil + } + } if isStdOut(out) { fmt.Fprintln(out, Prompt) }