From 132bd05b6ba460889632fd44f6cc848b47e3c884 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 4 Mar 2019 17:09:33 -0500 Subject: [PATCH] Bump to Replace golang 1.10 with 1.12 Signed-off-by: Daniel J Walsh --- .travis.yml | 2 +- tests/validate/gofmt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 218a191780d..799f44d8f84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: go dist: xenial sudo: required go: - - 1.10.x - 1.11.x + - 1.12.x - tip env: diff --git a/tests/validate/gofmt.sh b/tests/validate/gofmt.sh index 3a296866abf..09bac4def46 100755 --- a/tests/validate/gofmt.sh +++ b/tests/validate/gofmt.sh @@ -1,5 +1,5 @@ #!/bin/bash -if test $(find . -name "*.go" -not -path "./vendor/*" -print0 | xargs -n 1 -0 gofmt -s -l | wc -l) -ne 0 ; then +if test $(find . -name "*.go" -not -path "./vendor/*" -not -path ./docker/types.go -print0 | xargs -n 1 -0 gofmt -s -l | wc -l) -ne 0 ; then echo Error: source files are not formatted according to recommendations. Run \"gofmt -s -w\" on: find . -name "*.go" -not -path "./vendor/*" -print0 | xargs -n 1 -0 gofmt -s -l exit 1