Skip to content

Commit d11375a

Browse files
authored
Merge pull request #244 from mavimo/fix-issue-on-build-windows-architecture
fix build on windows architecture
2 parents 04fe872 + 135a2d6 commit d11375a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/clustermanager/ssh_communicator.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"os"
1111
"path"
1212
"strings"
13-
"syscall"
1413
"time"
1514

1615
"golang.org/x/crypto/ssh"
@@ -228,7 +227,10 @@ func (sshComm *SSHCommunicator) CapturePassphrase(sshKeyName string) error {
228227
}
229228

230229
fmt.Print("Enter passphrase for SSH key " + privateKey.PrivateKeyPath + ": ")
231-
text, err := terminal.ReadPassword(syscall.Stdin)
230+
// Should be syscall.Stdin but on window architecture the build fail since is
231+
// not an integer value. Casting the syscall.Stdin to int complain on unrequired
232+
// casting on most of the architecture we support.
233+
text, err := terminal.ReadPassword(0)
232234

233235
if err != nil {
234236
return err

0 commit comments

Comments
 (0)