fix: fix build/install
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f0c93b4fde
commit
b06ee1d6d7
@ -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 != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user