mirror of
https://github.com/helm/helm.git
synced 2026-08-05 07:30:46 +00:00
Fixing failing CI for windows
A fix introduced in #8631 caused a bug in Windows builds due to a type difference between POSIX and Windows environments. This change corrects that problem and provides a code comment to warn others. Signed-off-by: Matt Farina <matt@mattfarina.com>
This commit is contained in:
@@ -135,7 +135,9 @@ func (p *Package) Clearsign(filename string) error {
|
||||
// promptUser implements provenance.PassphraseFetcher
|
||||
func promptUser(name string) ([]byte, error) {
|
||||
fmt.Printf("Password for key %q > ", name)
|
||||
pw, err := terminal.ReadPassword(syscall.Stdin)
|
||||
// syscall.Stdin is not an int in all environments and needs to be coerced
|
||||
// into one there (e.g., Windows)
|
||||
pw, err := terminal.ReadPassword(int(syscall.Stdin))
|
||||
fmt.Println()
|
||||
return pw, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user