Greatly lengthen exec timeouts... for now

This commit is contained in:
Matthew Holt 2020-03-21 16:29:10 -06:00
parent 362c34597d
commit 40c0796cc2
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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 {