Skip to content

Commit

Permalink
Greatly lengthen exec timeouts... for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Mar 21, 2020
1 parent 362c345 commit 40c0796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40c0796

Please sign in to comment.