From 924f1a5045459e7e7cf26b3fb610ccd5795f9eca Mon Sep 17 00:00:00 2001 From: Jonathan Vogt Date: Thu, 11 Feb 2021 10:51:16 +0100 Subject: [PATCH] fix broken Windows build on windows syscall.Stdin isn't a int. --- cmd/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/providers.go b/cmd/providers.go index bbac7d3..ee0b7c6 100644 --- a/cmd/providers.go +++ b/cmd/providers.go @@ -98,7 +98,7 @@ var cmdProvidersPassword = &cobra.Command{ Run: func(cmd *cobra.Command, args []string) { provider := args[0] fmt.Printf("Please enter the password for the '%s' provider: ", provider) - pass, err := term.ReadPassword(syscall.Stdin) + pass, err := term.ReadPassword(int(syscall.Stdin)) if err != nil { log.Fatalf(color.RedString("Could not read password")) }