diff --git a/dev/devcam/hook.go b/dev/devcam/hook.go index 6fa193d94..8dd030b5b 100644 --- a/dev/devcam/hook.go +++ b/dev/devcam/hook.go @@ -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 }