From 4bb2570de3104ecb1dacbb02c41d7572a4bab741 Mon Sep 17 00:00:00 2001 From: c-bata Date: Thu, 9 Apr 2020 19:12:32 +0900 Subject: [PATCH] Bump the Go version up to 1.14.2 for Travis CI --- .travis.yml | 2 +- hack/verify-gofmt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3ded96f080e..066c35d8ca8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ jobs: include: - name: "Go unit tests, gofmt, golint and coveralls" language: go - go: "1.12.5" + go: "1.14.2" go_import_path: github.com/kubeflow/katib install: - curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v1.0.7/kubebuilder_1.0.7_linux_amd64.tar.gz" diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh index 7079ba16ea0..a1ca648f77b 100755 --- a/hack/verify-gofmt.sh +++ b/hack/verify-gofmt.sh @@ -22,7 +22,7 @@ if ! which gofmt > /dev/null; then exit 1 fi -diff=$(find . -name "*.go" | grep -v "\/vendor\/" | xargs gofmt -s -d 2>&1) +diff=$(find . -name "*.go" | grep -v "\/vendor\/" | grep -v "\.pb\.go$" | xargs gofmt -s -d 2>&1) if [[ -n "${diff}" ]]; then echo "${diff}" echo