Skip to content

Commit

Permalink
Fix Travis to not check gofmt on vendor/*
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
  • Loading branch information
tianon committed Jan 14, 2014
1 parent bdcd1cf commit f700aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/travis/gofmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
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])
Expand Down

0 comments on commit f700aa1

Please sign in to comment.