mod+lncli: remove deprecated package [skip ci]

The use of golang.org/x/crypto/ssh/terminal was marked as deprecated
since that code was moved to its own repo golang.org/x/term.
With this commit we use the new package name directly, which was already
pulled in under its new name anyway.
This commit is contained in:
Oliver Gugger committed 2021-09-24 09:22:47 +02:00
1 parent e686a70b96
commit 765d043cc0
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ import (
"github.com/lightningnetwork/lnd/macaroons"
"github.com/urfave/cli"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
@@ -406,7 +406,7 @@ func readPassword(text string) ([]byte, error) {
// The variable syscall.Stdin is of a different type in the Windows API
// that's why we need the explicit cast. And of course the linter
// doesn't like it either.
pw, err := terminal.ReadPassword(int(syscall.Stdin)) // nolint:unconvert
pw, err := term.ReadPassword(int(syscall.Stdin)) // nolint:unconvert
fmt.Println()
return pw, err
}