mirror of
https://github.com/caddyserver/xcaddy.git
synced 2025-03-15 01:58:56 +01:00
Greatly lengthen exec timeouts... for now
This commit is contained in:
parent
362c34597d
commit
40c0796cc2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue