godo
godo copied to clipboard
Fail to install on Windows due to undefined syscalls
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
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
+1
+1
+1
+1
Is there any status update on this? Otherwise then maybe just update README that Godo is not usable with Windows?
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.
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.
@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)
- https://github.com/go-task/task
- https://github.com/rliebz/tusk
- https://github.com/tockins/realize (some windows support seems in place https://github.com/tockins/realize/issues/19)
- https://github.com/markbates/grift
Then there are the task runners written in other languages. Rust has very good Windows support for example.
@martinlindhe Thanks for that, I appreciate it :) I actually found mage, I'm looking into using it https://github.com/magefile/mage
Mage looks cool too! Glad you can move forward