godo icon indicating copy to clipboard operation
godo copied to clipboard

Fail to install on Windows due to undefined syscalls

Open naganumat opened this issue 9 years ago • 11 comments

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

naganumat avatar Feb 05 '16 00:02 naganumat

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

FilBot3 avatar Mar 14 '16 13:03 FilBot3

+1

Amblomeke avatar Apr 20 '16 19:04 Amblomeke

+1

Ravenwater avatar May 13 '16 16:05 Ravenwater

+1

btab avatar Jul 04 '16 19:07 btab

+1

cafeal avatar Jan 13 '17 08:01 cafeal

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

VaidotasSm avatar Feb 07 '17 09:02 VaidotasSm

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.

mgutz avatar Feb 11 '17 22:02 mgutz

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.

djha-skin avatar Feb 03 '18 08:02 djha-skin

@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 avatar Feb 03 '18 08:02 martinlindhe

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

djha-skin avatar Feb 03 '18 19:02 djha-skin

Mage looks cool too! Glad you can move forward

martinlindhe avatar Feb 04 '18 09:02 martinlindhe