From 083e628fb0299198db6c9f4d577e791d5af16968 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 02:51:52 +0000 Subject: [PATCH] Bump github.com/sethvargo/go-password from 0.2.0 to 0.3.0 Bumps [github.com/sethvargo/go-password](https://github.com/sethvargo/go-password) from 0.2.0 to 0.3.0. - [Commits](https://github.com/sethvargo/go-password/compare/v0.2.0...v0.3.0) --- updated-dependencies: - dependency-name: github.com/sethvargo/go-password dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 3 ++- go.sum | 4 ++-- .../copy/test/data/case18/assets/README.md | 1 - .../sethvargo/go-password/password/generate.go | 15 ++++++++------- vendor/modules.txt | 4 ++-- 5 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 vendor/github.com/otiai10/copy/test/data/case18/assets/README.md diff --git a/go.mod b/go.mod index a7c703388..dfc26be90 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/alexellis/arkade go 1.21 +toolchain go1.22.2 require ( github.com/Masterminds/semver v1.5.0 @@ -12,7 +13,7 @@ require ( github.com/olekukonko/tablewriter v0.0.5 github.com/otiai10/copy v1.14.0 github.com/pkg/errors v0.9.1 - github.com/sethvargo/go-password v0.2.0 + github.com/sethvargo/go-password v0.3.0 github.com/spf13/cobra v1.8.0 golang.org/x/crypto v0.22.0 golang.org/x/mod v0.17.0 diff --git a/go.sum b/go.sum index 5767c1f05..962c19a75 100644 --- a/go.sum +++ b/go.sum @@ -70,8 +70,8 @@ github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUc github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sethvargo/go-password v0.2.0 h1:BTDl4CC/gjf/axHMaDQtw507ogrXLci6XRiLc7i/UHI= -github.com/sethvargo/go-password v0.2.0/go.mod h1:Ym4Mr9JXLBycr02MFuVQ/0JHidNetSgbzutTr3zsYXE= +github.com/sethvargo/go-password v0.3.0 h1:OLFHZ91Z7NiNP3dnaPxLxCDXlb6TBuxFzMvv6bu+Ptw= +github.com/sethvargo/go-password v0.3.0/go.mod h1:p6we8DZ0eyYXof9pon7Cqrw98N4KTaYiadDml1dUEEw= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= diff --git a/vendor/github.com/otiai10/copy/test/data/case18/assets/README.md b/vendor/github.com/otiai10/copy/test/data/case18/assets/README.md deleted file mode 100644 index 5570c7ff5..000000000 --- a/vendor/github.com/otiai10/copy/test/data/case18/assets/README.md +++ /dev/null @@ -1 +0,0 @@ -# Hello \ No newline at end of file diff --git a/vendor/github.com/sethvargo/go-password/password/generate.go b/vendor/github.com/sethvargo/go-password/password/generate.go index 9956fbda7..45c2247c5 100644 --- a/vendor/github.com/sethvargo/go-password/password/generate.go +++ b/vendor/github.com/sethvargo/go-password/password/generate.go @@ -1,11 +1,11 @@ // Package password provides a library for generating high-entropy random // password strings via the crypto/rand package. // -// res, err := Generate(64, 10, 10, false, false) -// if err != nil { -// log.Fatal(err) -// } -// log.Printf(res) +// res, err := Generate(64, 10, 10, false, false) +// if err != nil { +// log.Fatal(err) +// } +// log.Printf(res) // // Most functions are safe for concurrent use. package password @@ -13,6 +13,7 @@ package password import ( "crypto/rand" "errors" + "fmt" "io" "math/big" "strings" @@ -245,7 +246,7 @@ func randomInsert(reader io.Reader, s, val string) (string, error) { n, err := rand.Int(reader, big.NewInt(int64(len(s)+1))) if err != nil { - return "", err + return "", fmt.Errorf("failed to generate random integer: %w", err) } i := n.Int64() return s[0:i] + val + s[i:], nil @@ -255,7 +256,7 @@ func randomInsert(reader io.Reader, s, val string) (string, error) { func randomElement(reader io.Reader, s string) (string, error) { n, err := rand.Int(reader, big.NewInt(int64(len(s)))) if err != nil { - return "", err + return "", fmt.Errorf("failed to generate random integer: %w", err) } return string(s[n.Int64()]), nil } diff --git a/vendor/modules.txt b/vendor/modules.txt index 295039b6e..7e4090e89 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -115,8 +115,8 @@ github.com/pkg/errors # github.com/rivo/uniseg v0.4.4 ## explicit; go 1.18 github.com/rivo/uniseg -# github.com/sethvargo/go-password v0.2.0 -## explicit; go 1.14 +# github.com/sethvargo/go-password v0.3.0 +## explicit; go 1.22 github.com/sethvargo/go-password/password # github.com/sirupsen/logrus v1.9.3 ## explicit; go 1.13