fix: fix build/install
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
abs3nt 2023-03-05 23:54:34 -08:00
parent f0c93b4fde
commit b06ee1d6d7
1 changed files with 1 additions and 6 deletions

View File

@ -183,12 +183,7 @@ func (t *Tool) Compile(path string, stop <-chan bool) (response Response) {
var out bytes.Buffer
var stderr bytes.Buffer
done := make(chan error)
buildPath, _ := filepath.Abs(Wdir())
buildPath = "-o " + buildPath
buildPath += "/bin"
fmt.Println(t.cmd, t.Args)
args := append(t.cmd, buildPath)
args = append(args, t.Args...)
args := append(t.cmd, t.Args...)
cmd := exec.Command(args[0], args[1:]...)
fmt.Println(cmd)
if t.Dir != "" {