fix: fix build/install
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
abs3nt 2023-03-05 23:54:34 -08:00
parent f0c93b4fde
commit b06ee1d6d7

View File

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