dev/devcam: import vendor files as-is, do not require gofmt

Change-Id: If3afd3769dbad0a20bd8ff2f2bbb5eb9f89f345a
This commit is contained in:
Paul Lindner 2018-01-07 19:07:40 -08:00
parent 683d81f2df
commit 266447a7e7
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,10 @@ func gofmtRequired(file string) bool {
if !strings.HasSuffix(file, ".go") {
return false
}
// vendor files should be imported as-is
if strings.HasPrefix(file, "vendor/") {
return false
}
if !strings.HasPrefix(file, "test/") {
return true
}