-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cant install on windows #626
Comments
Do you have an old version of |
I also faced this issue after updating to logrus glide.yaml: package: playground
import:
- package: github.com/Sirupsen/logrus
version: ^1.0.3 glide.lock:
main.go: package main
import log "github.com/Sirupsen/logrus"
func main() {
log.WithFields(log.Fields{
"animal": "walrus",
}).Info("A walrus appears")
} Error: $ go build .
# playground/vendor/golang.org/x/crypto/ssh/terminal
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:42: undefined: windows.ENABLE_ECHO_INPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:42: undefined: windows.ENABLE_PROCESSED_INPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:42: undefined: windows.ENABLE_LINE_INPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:42: undefined: windows.ENABLE_PROCESSED_OUTPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:43: undefined: windows.SetConsoleMode
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:62: undefined: windows.SetConsoleMode
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:67: undefined: windows.ConsoleScreenBufferInfo
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:68: undefined: windows.GetConsoleScreenBufferInfo
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:91: undefined: windows.ENABLE_ECHO_INPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:92: undefined: windows.ENABLE_PROCESSED_INPUT
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:92: too many errors |
Again (especially since you can't reproduce this on a new project), does the project you're updating has the latest crypto library? |
@dmathieu This is in a completely new project. Additionally, from the |
Looking further into this, it appears to be error only within the terminal package, when calling the windows one. Are you able to use that terminal package outside of logrus? |
No problem and no need to apologise 😄. Turns out I did not have the latest version for package Just for completeness,
If @StarpTech can confirm the same, the issue can be closed. |
It also fixed it. Thanks all. |
🎉 |
The text was updated successfully, but these errors were encountered: