go-godo / godo

golang build tool in the spirt of rake, gulp
MIT License
535 stars 31 forks source link

Fail to install on Windows due to undefined syscalls #42

Open naganumat opened 8 years ago

naganumat commented 8 years ago

I'm using godo for some products on Linux and Windows. Godo works fine on Linux, but on Windows, fails to install due to undefined syscalls.

> go get -u gopkg.in/godo.v2/cmd/godo
# gopkg.in/godo.v2/cmd/godo
src\gopkg.in\godo.v2\cmd\godo\main.go:202: undefined: syscall.Getpgid
src\gopkg.in\godo.v2\cmd\godo\main.go:206: undefined: syscall.Kill

Environment: Godo v2.0.7 (maybe), Go 1.5.3, Windows 7

FilBot3 commented 8 years ago

I also get the same errors on both Cmder, and Cygwin.

C:\Users\predatorian
λ go get -u gopkg.in/godo.v2/cmd/godo
# gopkg.in/godo.v2/cmd/godo
Documents\GitHub\GO\src\gopkg.in\godo.v2\cmd\godo\main.go:202: undefined: syscall.Getpgid
Documents\GitHub\GO\src\gopkg.in\godo.v2\cmd\godo\main.go:206: undefined: syscall.Kill

C:\Users\predatorian
λ go get github.com/go-godo/godo
# github.com/go-godo/godo
Documents\GitHub\GO\src\github.com\go-godo\godo\exec.go:243: multiple-value gopass.GetPasswd() in single-value context
Amblomeke commented 8 years ago

+1

Ravenwater commented 8 years ago

+1

btab commented 8 years ago

+1

cafeal commented 7 years ago

+1

VaidotasSm commented 7 years ago

Is there any status update on this? Otherwise then maybe just update README that Godo is not usable with Windows?

mgutz commented 7 years ago

The issues is Go is not very good at process handling. See questions like this on stackoverflow. If somebody can provide a solution to that on Windows, I'd be happy to merge it in.

djha-skin commented 6 years ago

It should be noted that this tool is way useful for cross platform development, since I can have my entire build expressed in golang and thus dispense with writing bash scripts for Linux builds and powershell scripts on windows. This issue blocks this use case.

martinlindhe commented 6 years ago

@djhaskin987 Now there are other task runners supporting your use case, what makes godo a requirement for your project?

Here's a few, (google "golang task runner" for more)

Then there are the task runners written in other languages. Rust has very good Windows support for example.

djha-skin commented 6 years ago

@martinlindhe Thanks for that, I appreciate it :) I actually found mage, I'm looking into using it https://github.com/magefile/mage

martinlindhe commented 6 years ago

Mage looks cool too! Glad you can move forward