mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix Travis to not check gofmt on vendor/*
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
parent
bdcd1cfba5
commit
f700aa1570
1 changed files with 3 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue