mirror of
https://github.com/caddyserver/xcaddy.git
synced 2024-09-07 21:19:17 +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
|
"-ldflags", "-w -s", // trim debug symbols
|
||||||
"-trimpath",
|
"-trimpath",
|
||||||
)
|
)
|
||||||
err = env.runCommand(cmd, 1*time.Minute)
|
err = env.runCommand(cmd, 5*time.Minute)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 {
|
func (env environment) execGoGet(modulePath, moduleVersion string) error {
|
||||||
mod := modulePath + "@" + moduleVersion
|
mod := modulePath + "@" + moduleVersion
|
||||||
cmd := env.newCommand("go", "get", "-d", "-v", mod)
|
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 {
|
type moduleTemplateContext struct {
|
||||||
|
|
Loading…
Reference in a new issue