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
x/crypto/ssh/terminal: build failing on darwin/amd64: undefined: unix.IoctlGetTermios #22688
Comments
687d4b8 is likely to blame. I can't reproduce the failure on Linux, though - not even with |
/cc @tklauser |
go get -u golang.org/x/crypto/ssh/terminal
failed
Cannot reproduce on neither Darwin not Linux with @sapiens-sapide Could you try to |
Could be that the |
@tklauser I did |
@sapiens-sapide as @mvdan mentioned, did you check that your
Could you check the result of running |
@tklauser |
I'm up to date with commit 1e2299c |
@sapiens-sapide Look in the file $GOPATH/src/golang.org/x/sys/unix/syscall_darwin.go. Do you see the functions Like others, I don't see how you could be getting this error. Could you show us the output of |
|
@sapiens-sapide looks like your build is using a (outdated) vendored copy of x/sys/unix in x/crypto. But upstream x/crypto doesn't even have a vendor directory. Looks like your copy of x/crypto was somehow changed. Could you reset it to master and make sure to |
@tklauser : removing the Could it be the Thank your for your quick help ! Regards, |
@sapiens-sapide I don't use homebrew, so I cannot really tell, sorry. AFAIK the Go package in homebrew is not maintained by the Go project, so it's probably best to check with the package's maintainer. |
I was hit by this after updating my vendor https://travis-ci.org/allegro/marathon-consul/builds/301938144#L596 |
Thanks all for the investigation. Closing because there is nothing to fix in the Go project. |
Happens to my CI as well with a fresh context, in an alpine Docker image. It downloads all vendors from scratch everytime using
See https://travis-ci.org/EtixLabs/cameradar/builds/310140604 for full build logs. The version of |
@Ullaakut This issue is closed, and it was about Darwin, not Alpine. Please open a new issue with full details. |
For those encountering this issue on Go 1.9.3 or 1.9.4 on Darwin (macOS), the following worked for me to fix the problem: $ cd $GOPATH/src/golang.org/x/sys/unix
$ git pull
$ go build -x golang.org/x/crypto/ssh/terminal # <== should no longer return errors |
And if you have this issue in your CI, it's probably because of |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.2 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
go get -u golang.org/x/crypto/ssh/terminal
What did you expect to see?
no error. The package should be fetched and built.
What did you see instead?
The text was updated successfully, but these errors were encountered: