Skip to content

Commit

Permalink
Merge pull request #3632 from dependabot/dependabot/go_modules/go_mod…
Browse files Browse the repository at this point in the history
…ules/helpers/github.com/dependabot/gomodules-extracted-1.3.0

build(deps): bump github.com/dependabot/gomodules-extracted from 1.2.0 to 1.3.0 in /go_modules/helpers
  • Loading branch information
thepwagner committed May 5, 2021
2 parents 0e7f74d + b9440df commit 5e3d19e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go_modules/helpers/go.mod
Expand Up @@ -4,6 +4,6 @@ go 1.16

require (
github.com/Masterminds/vcs v1.13.1
github.com/dependabot/gomodules-extracted v1.2.0
github.com/dependabot/gomodules-extracted v1.3.0
golang.org/x/mod v0.4.2
)
4 changes: 2 additions & 2 deletions go_modules/helpers/go.sum
@@ -1,7 +1,7 @@
github.com/Masterminds/vcs v1.13.1 h1:NL3G1X7/7xduQtA2sJLpVpfHTNBALVNSjob6KEjPXNQ=
github.com/Masterminds/vcs v1.13.1/go.mod h1:N09YCmOQr6RLxC6UNHzuVwAdodYbbnycGHSmwVJjcKA=
github.com/dependabot/gomodules-extracted v1.2.0 h1:K/gTyOyhasOt4cjULvOPNiD3MAFGytp4F7e39aB+0Y0=
github.com/dependabot/gomodules-extracted v1.2.0/go.mod h1:3NWkH8KcZVDM87JuZI8hCZzYbjfUSz98EZI53qjgMgY=
github.com/dependabot/gomodules-extracted v1.3.0 h1:Rsnl5uR+wjE+7ontePia/B3p48aBRsyEhyNrzCwbkaw=
github.com/dependabot/gomodules-extracted v1.3.0/go.mod h1:cpzrmDX1COyhSDQXHfkRMw0STb0vmguBFqmrkr51h1I=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down
9 changes: 3 additions & 6 deletions go_modules/helpers/updatechecker/main.go
@@ -1,6 +1,7 @@
package updatechecker

import (
"context"
"errors"
"io/ioutil"
"regexp"
Expand Down Expand Up @@ -42,13 +43,9 @@ func GetUpdatedVersion(args *Args) (interface{}, error) {
return currentVersion, nil
}

modload.InitMod()

repo, err := modfetch.Lookup("direct", args.Dependency.Name)
if err != nil {
return nil, err
}
modload.LoadModFile(context.Background())

repo := modfetch.Lookup("direct", args.Dependency.Name)
versions, err := repo.Versions("")
if err != nil {
return nil, err
Expand Down

0 comments on commit 5e3d19e

Please sign in to comment.