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

golang.org/x/sys in glide.lock too old? #35

Closed
ksala opened this issue Jan 16, 2018 · 3 comments
Closed

golang.org/x/sys in glide.lock too old? #35

ksala opened this issue Jan 16, 2018 · 3 comments

Comments

@ksala
Copy link

ksala commented Jan 16, 2018

Hi,

I've tried to clone and compile kube-monkey but get this error:

> go get github.com/asobti/kube-monkey
[...]
> cd $GOPATH/src/github.com/asobti/kube-monkey
> glide install --strip-vendor
[...]
> make clean
[...]
> make build                                                                                                                                                                          
rm -f kube-monkey                                                                                                                                                                                                    
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o kube-monkey                                                                                                                                                        
# github.com/asobti/kube-monkey/vendor/golang.org/x/crypto/ssh/terminal                                                                                                                                              
vendor/golang.org/x/crypto/ssh/terminal/util.go:30:12: undefined: unix.IoctlGetTermios                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:38:18: undefined: unix.IoctlGetTermios                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:54:12: undefined: unix.IoctlSetTermios                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:64:18: undefined: unix.IoctlGetTermios                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:75:9: undefined: unix.IoctlSetTermios                                                                                                                                
vendor/golang.org/x/crypto/ssh/terminal/util.go:80:13: undefined: unix.IoctlGetWinsize                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:98:18: undefined: unix.IoctlGetTermios                                                                                                                               
vendor/golang.org/x/crypto/ssh/terminal/util.go:107:12: undefined: unix.IoctlSetTermios                                                                                                                              
vendor/golang.org/x/crypto/ssh/terminal/util.go:112:3: undefined: unix.IoctlSetTermios                                                                                                                               
make: *** [Makefile:9: build] Error 2 

As a fix I've just changed the commit used for golang.org/x/sys (golang/sys@9a2e24c) to the latest one to date (golang/sys@fff93fa).

Not sure if it's something on my side, or just a wrong dependency.

@asobti
Copy link
Owner

asobti commented Jan 16, 2018

Did updating that dependency fix the issue for you?

If possible, could try a fresh clone of the repo and run make build without running glide install... ? All dependencies are checked in to the tree, so just a clone should be sufficient.

@ksala
Copy link
Author

ksala commented Jan 17, 2018

Yes, updating the dependency fixed the issue, sorry if I was not clear.

And yes, just a "clone && make build" did work. I guess just the glide.lock it's not updated? I saw it and thought I had to pull the dependencies.

@Aergonus
Copy link
Collaborator

Project has been updated! Dependencies should be fine.

I ran into this error when trying to strip-vendors for glide. The client-go and glide updates should have removed this issue.

@asobti asobti closed this as completed Jan 25, 2018
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

3 participants