From df0b685ee4ee4f136cc573466cf07122aef5efa6 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Sun, 30 Nov 2025 18:43:31 -0800 Subject: [PATCH] fix lint, I hope --- cmd/user.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/user.go b/cmd/user.go index 1e1492ddb..6650721ee 100644 --- a/cmd/user.go +++ b/cmd/user.go @@ -129,14 +129,15 @@ var ( func promptPassword() string { for { fmt.Print("Enter new password (press enter with no password to cancel): ") - password, err := term.ReadPassword(syscall.Stdin) + // This cast is necessary for some platforms + password, err := term.ReadPassword(int(syscall.Stdin)) //nolint:unconvert if err != nil { log.Fatal("Error getting password", err) } fmt.Print("\nConfirm new password (press enter with no password to cancel): ") - confirmation, err := term.ReadPassword(syscall.Stdin) + confirmation, err := term.ReadPassword(int(syscall.Stdin)) //nolint:unconvert if err != nil { log.Fatal("Error getting password confirmation", err)