mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
Improve LookPath
This commit is contained in:
parent
ae2d1bd52d
commit
10ae7c3210
18 changed files with 129 additions and 42 deletions
|
@ -28,6 +28,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gohugoio/hugo/common/hexec"
|
||||
|
||||
hglob "github.com/gohugoio/hugo/hugofs/glob"
|
||||
|
||||
"github.com/gobwas/glob"
|
||||
|
@ -537,7 +539,10 @@ func (c *Client) runGo(
|
|||
}
|
||||
|
||||
stderr := new(bytes.Buffer)
|
||||
cmd := exec.CommandContext(ctx, "go", args...)
|
||||
cmd, err := hexec.SafeCommandContext(ctx, "go", args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.Env = c.environ
|
||||
cmd.Dir = c.ccfg.WorkingDir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue