Skip to content

Commit 46e5aa1

Browse files
committed
Removed dep golang.org/x/crypto/ssh/terminal in favor of golang.org/x/term
1 parent 6d8b529 commit 46e5aa1

File tree

3 files changed

+3
-66
lines changed

3 files changed

+3
-66
lines changed

.licenses/go/golang.org/x/crypto/ssh/terminal.dep.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

cli/arguments/user_fields.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
"github.com/arduino/arduino-cli/cli/feedback"
2424
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
25-
"golang.org/x/crypto/ssh/terminal"
25+
"golang.org/x/term"
2626
)
2727

2828
// AskForUserFields prompts the user to input the provided user fields.
@@ -36,7 +36,7 @@ func AskForUserFields(userFields []*rpc.UserField) map[string]string {
3636
var value []byte
3737
var err error
3838
if f.Secret {
39-
value, err = terminal.ReadPassword(int(os.Stdin.Fd()))
39+
value, err = term.ReadPassword(int(os.Stdin.Fd()))
4040
} else {
4141
value, err = reader.ReadBytes('\n')
4242
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ require (
5151
require (
5252
github.com/rogpeppe/go-internal v1.3.0
5353
go.bug.st/testifyjson v1.1.1
54+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
5455
gopkg.in/yaml.v3 v3.0.1
5556
)
5657

@@ -87,7 +88,6 @@ require (
8788
github.com/xanzy/ssh-agent v0.2.1 // indirect
8889
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
8990
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
90-
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
9191
gopkg.in/ini.v1 v1.62.0 // indirect
9292
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
9393
gopkg.in/warnings.v0 v0.1.2 // indirect

0 commit comments

Comments
 (0)