Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on FreeBSD i386: undefined: processes #28

Open
yurivict opened this issue Feb 9, 2018 · 2 comments
Open

Fails on FreeBSD i386: undefined: processes #28

yurivict opened this issue Feb 9, 2018 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Feb 9, 2018

vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

Found in the FreeBSD port for this project: https://github.com/hashicorp/nomad

@mjarkk
Copy link

mjarkk commented Feb 16, 2019

Can confirm, when compiling a project using gox that is using this package it shows the same errors:

7 errors occurred:
--> netbsd/arm error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> netbsd/amd64 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> freebsd/arm error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> netbsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> freebsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> openbsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess
# github.com/jesseduffield/lazygit/vendor/gopkg.in/src-d/go-git.v4
vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

--> openbsd/amd64 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess
# github.com/jesseduffield/lazygit/vendor/gopkg.in/src-d/go-git.v4
vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

@mjarkk
Copy link

mjarkk commented Mar 3, 2019

For those who wan't to cross compile this i've made a fork that can be cross compiled: https://github.com/mjarkk/go-ps
It also includes a extra function: ps.Supported() that returns false if the OS/platform is not supported..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants