mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Merge pull request #3592 from tianon/fix-travis-vendor
Fix Travis to not check gofmt on vendor/* Upstream-commit: 12d00d19bb5c43c3a7a1c0e051ca52af4d47034c Component: engine
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user