From f700aa15705c418d6523b7ecb7c6e7413deaed13 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 14 Jan 2014 11:03:45 -0700 Subject: [PATCH] Fix Travis to not check gofmt on vendor/* Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- hack/travis/gofmt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/travis/gofmt.py b/hack/travis/gofmt.py index 1bb062e2f6..dc724bc90e 100755 --- a/hack/travis/gofmt.py +++ b/hack/travis/gofmt.py @@ -11,6 +11,9 @@ files = subprocess.check_output([ exit_status = 0 for filename in files.split('\n'): + if filename.startswith('vendor/'): + continue # we can't be changing our upstream vendors for gofmt, so don't even check them + if filename.endswith('.go'): try: out = subprocess.check_output(['gofmt', '-s', '-l', filename])