all: Use protobuf to generate config structs (fixes #6734) (#6900)

This commit is contained in:
Audrius Butkevicius
2020-08-25 08:11:14 +02:00
committed by GitHub
parent 5b953033c7
commit d507d932b8
84 changed files with 3807 additions and 542 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
)
@@ -25,7 +26,7 @@ func TestCheckGoFmt(t *testing.T) {
if path == ".git" {
return filepath.SkipDir
}
if filepath.Ext(path) != ".go" {
if filepath.Ext(path) != ".go" || strings.HasSuffix(path, ".pb.go") {
return nil
}
cmd := exec.Command("gofmt", "-s", "-d", path)