build(deps): bump github.com/spf13/viper from 1.8.1 to 1.9.0 (#1821)

* build(deps): bump github.com/spf13/viper from 1.8.1 to 1.9.0

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* replace `golang.org/x/crypto/ssh/terminal` with `golang.org/x/term`

* update go.mod

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
dependabot[bot]
2021-10-01 00:00:07 -04:00
committed by GitHub
parent c3d9e136ce
commit fb46242ad5
3 changed files with 132 additions and 82 deletions

View File

@@ -31,7 +31,7 @@ import (
"time"
"github.com/pkg/errors"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)
const hashicorpReleasesURL = "https://releases.hashicorp.com"
@@ -41,7 +41,7 @@ const ngrokAPIURL = "localhost:41414" // We hope this isn't used.
const atlantisPort = 4141
func readPassword() (string, error) {
password, err := terminal.ReadPassword(int(syscall.Stdin)) // nolint: unconvert
password, err := term.ReadPassword(int(syscall.Stdin)) // nolint: unconvert
return string(password), err
}