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 {