Skip to content

Commit

Permalink
Disable survey prompt until the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Aug 4, 2020
1 parent 9fe8a1f commit 27c3dc1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/skaffold/survey/survey.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 27c3dc1

Please sign in to comment.