erikdubbelboer / gspt

setproctitle() for Go
MIT License
107 stars 22 forks source link

Weird issue: not building cross platform with gox #17

Closed jayalane closed 1 year ago

jayalane commented 1 year ago

I'm still investigating, so this report might be wrong, but my "gox" build started failing after I included this (very nice package):


--> openbsd/amd64 error: exit status 1                                                                                                                                                  
Stderr: go build github.com/erikdubbelboer/gspt: build constraints exclude all Go files in /Users/chlane/go/pkg/mod/github.com/erikdubbelboer/gspt@v0.0.0-20210805194459-ce36a5128377   

--> linux/amd64 error: exit status 1                                                                                                                                                    
Stderr: go build github.com/erikdubbelboer/gspt: build constraints exclude all Go files in /Users/chlane/go/pkg/mod/github.com/erikdubbelboer/gspt@v0.0.0-20210805194459-ce36a5128377   

--> windows/amd64 error: exit status 1                                                                                                                                                  
Stderr: go build github.com/erikdubbelboer/gspt: build constraints exclude all Go files in /Users/chlane/go/pkg/mod/github.com/erikdubbelboer/gspt@v0.0.0-20210805194459-ce36a5128377   

etc. I won't put the entire thing in there. Maybe this is an obvious error or something, I'll post more when I figure it out.

erikdubbelboer commented 1 year ago

It says build constraints exclude all Go files but there are no build constraints in this package. Are you maybe disabling cgo? Cgo is required for this to work.

jayalane commented 1 year ago

That must be it then, I didn't do anything to enable CGO in gox ( https://github.com/mitchellh/gox ). I'll close it as WAD then.