Skip to content

Commit

Permalink
Fix windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
viovanov committed Oct 6, 2021
1 parent 8e617ad commit f49a7b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"TLSCA",
"tmpdir",
"tmpl",
"unconvert",
"urfave",
"Wrapf",
"xargs",
Expand Down
2 changes: 1 addition & 1 deletion cmd/policy/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *LoginCmd) Run(g *Globals) error {
password := c.Password
if c.Password == "" {
fmt.Print("Password: ")
bytePassword, err := term.ReadPassword(syscall.Stdin)
bytePassword, err := term.ReadPassword(int(syscall.Stdin)) // nolint:unconvert // needed for windows
if err != nil {
return errors.Wrap(err, "failed to read password from stdin")
}
Expand Down

0 comments on commit f49a7b2

Please sign in to comment.