@@ -14,20 +14,6 @@ import (
14
14
"strings"
15
15
)
16
16
17
- const (
18
- // ProtobufVersion is the version of the protocol buffers.
19
- ProtobufVersion = "3.7.1"
20
- // PrototoolVersion specifies the version of the prototool.
21
- PrototoolVersion = "1.6.0"
22
- )
23
-
24
- var (
25
- // ProtoOS specifies the operative system for prototool.
26
- ProtoOS = getProtoOS ()
27
- // ProtocFilename is the name of the protoc binary.
28
- ProtocFilename = fmt .Sprintf ("protoc-%s-%s-x86_64.zip" , ProtobufVersion , ProtoOS )
29
- )
30
-
31
17
var (
32
18
gitMail = flag .String ("git-author-mail" , "cs3org-bot@hugo.labkode.com" , "Git author mail" )
33
19
gitName = flag .String ("git-author-name" , "cs3org-bot" , "Git author name" )
@@ -290,7 +276,7 @@ func findFolders() []string {
290
276
291
277
func buildProto () {
292
278
dir := "."
293
- cmd := exec .Command ("prototool" , "compile" )
279
+ cmd := exec .Command ("prototool" , "compile" , "--walk-timeout" , "10s" )
294
280
cmd .Dir = dir
295
281
run (cmd )
296
282
@@ -299,10 +285,10 @@ func buildProto() {
299
285
run (cmd )
300
286
301
287
// lint
302
- cmd = exec .Command ("prototool" , "format" , "-w" )
288
+ cmd = exec .Command ("prototool" , "format" , "-w" , "--walk-timeout" , "10s" )
303
289
cmd .Dir = dir
304
290
run (cmd )
305
- cmd = exec .Command ("prototool" , "lint" )
291
+ cmd = exec .Command ("prototool" , "lint" , "--walk-timeout" , "10s" )
306
292
cmd .Dir = dir
307
293
run (cmd )
308
294
cmd = exec .Command ("go" , "run" , "tools/check-license/check-license.go" )
@@ -340,7 +326,7 @@ func buildGo() {
340
326
// remove leftovers (existing defs)
341
327
os .RemoveAll ("build/go-cs3apis/cs3" )
342
328
343
- cmd := exec .Command ("prototool" , "generate" )
329
+ cmd := exec .Command ("prototool" , "generate" , "--walk-timeout" , "10s" )
344
330
run (cmd )
345
331
346
332
sed ("build/go-cs3apis" , ".go" , "github.com/cs3org/go-cs3apis/build/go-cs3apis/cs3/" , "github.com/cs3org/go-cs3apis/cs3/" )
0 commit comments