From 40c0796cc2e8f2df76c645aad2f2679e10763210 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 21 Mar 2020 16:29:10 -0600 Subject: [PATCH] Greatly lengthen exec timeouts... for now --- builder.go | 2 +- environment.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder.go b/builder.go index fdac9be..89b236c 100644 --- a/builder.go +++ b/builder.go @@ -60,7 +60,7 @@ func Build(caddyVersion string, plugins []CaddyPlugin, outputFile string) error "-ldflags", "-w -s", // trim debug symbols "-trimpath", ) - err = env.runCommand(cmd, 1*time.Minute) + err = env.runCommand(cmd, 5*time.Minute) if err != nil { return err } diff --git a/environment.go b/environment.go index 8ad141a..d026732 100644 --- a/environment.go +++ b/environment.go @@ -171,7 +171,7 @@ func (env environment) runCommand(cmd *exec.Cmd, timeout time.Duration) error { func (env environment) execGoGet(modulePath, moduleVersion string) error { mod := modulePath + "@" + moduleVersion cmd := env.newCommand("go", "get", "-d", "-v", mod) - return env.runCommand(cmd, 30*time.Second) + return env.runCommand(cmd, 60*time.Second) } type moduleTemplateContext struct {