dependabot-go_modules 0.125.4 → 0.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4186139c2bb3f62bd4f9446eb2a9e00742d0059c02c3c230aa74a738f6c2ae6
|
4
|
+
data.tar.gz: 3635f9c4276e27e34fd1c3b0694bb821e1c9fdaac745f486cfdb0d9457de727a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a0df4e2bdd441cbf2acc8ea963fa64388eac99567494efe1e4fe9afc551642fbac4807f769244a3e10e586124fd1adbba93d409fbe473d43ba101c36f4f20f
|
7
|
+
data.tar.gz: 442e099ca2a89a721dcbd09b202413a69b9d479aa94d7498b0dd5c88ff8eebdde29de94835c9a6409768512325b5e83127879cbfda9cc12de11ea8f0efb48141
|
data/helpers/build
CHANGED
data/helpers/go.mod
CHANGED
@@ -6,7 +6,7 @@ require (
|
|
6
6
|
github.com/Masterminds/vcs v1.13.1
|
7
7
|
github.com/dependabot/dependabot-core/go_modules/helpers/updater v0.0.0
|
8
8
|
github.com/dependabot/gomodules-extracted v1.2.0
|
9
|
-
golang.org/x/mod v0.
|
9
|
+
golang.org/x/mod v0.4.0
|
10
10
|
)
|
11
11
|
|
12
12
|
replace github.com/dependabot/dependabot-core/go_modules/helpers/importresolver => ./importresolver
|
data/helpers/go.sum
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
github.com/Masterminds/vcs v1.13.1 h1:NL3G1X7/7xduQtA2sJLpVpfHTNBALVNSjob6KEjPXNQ=
|
2
2
|
github.com/Masterminds/vcs v1.13.1/go.mod h1:N09YCmOQr6RLxC6UNHzuVwAdodYbbnycGHSmwVJjcKA=
|
3
|
-
github.com/dependabot/gomodules-extracted v0.0.0-20181020215834-1b2f850478a3 h1:Xj2leY0FVyZuo+p59vkIWG3dIqo+QtjskT5O1iTiywA=
|
4
|
-
github.com/dependabot/gomodules-extracted v0.0.0-20181020215834-1b2f850478a3/go.mod h1:+dRXSrUymjpT4yzKtn1QmeknT1S/yAHRr35en18dHp8=
|
5
3
|
github.com/dependabot/gomodules-extracted v1.2.0 h1:K/gTyOyhasOt4cjULvOPNiD3MAFGytp4F7e39aB+0Y0=
|
6
4
|
github.com/dependabot/gomodules-extracted v1.2.0/go.mod h1:3NWkH8KcZVDM87JuZI8hCZzYbjfUSz98EZI53qjgMgY=
|
7
5
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
8
6
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=
|
9
7
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
10
|
-
golang.org/x/mod v0.
|
11
|
-
golang.org/x/mod v0.
|
8
|
+
golang.org/x/mod v0.4.0 h1:8pl+sMODzuvGJkmj2W4kZihvVb5mKm8pB/X44PIQHv8=
|
9
|
+
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
12
10
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
13
11
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
14
12
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
@@ -139,8 +139,9 @@ module Dependabot
|
|
139
139
|
def handle_parser_error(path, stderr)
|
140
140
|
case stderr
|
141
141
|
when /go: .*: unknown revision/m
|
142
|
-
line = stderr.lines.grep(/unknown revision/).first
|
143
|
-
|
142
|
+
line = stderr.lines.grep(/unknown revision/).first.strip
|
143
|
+
handle_github_unknown_revision(line) if line.start_with?("go: github.com/")
|
144
|
+
raise Dependabot::DependencyFileNotResolvable, line
|
144
145
|
when /go: .*: unrecognized import path/m
|
145
146
|
line = stderr.lines.grep(/unrecognized import/).first
|
146
147
|
raise Dependabot::DependencyFileNotResolvable, line.strip
|
@@ -156,6 +157,26 @@ module Dependabot
|
|
156
157
|
end
|
157
158
|
end
|
158
159
|
|
160
|
+
GITHUB_REPO_REGEX = %r{github.com/[^@]*}.freeze
|
161
|
+
def handle_github_unknown_revision(line)
|
162
|
+
repo_path = line.scan(GITHUB_REPO_REGEX).first
|
163
|
+
return unless repo_path
|
164
|
+
|
165
|
+
# Query for _any_ version of this module, to know if it doesn't exist (or is private)
|
166
|
+
# or we were just given a bad revision by this manifest
|
167
|
+
SharedHelpers.in_a_temporary_directory do
|
168
|
+
SharedHelpers.with_git_configured(credentials: credentials) do
|
169
|
+
File.write("go.mod", "module dummy\n")
|
170
|
+
|
171
|
+
env = { "GOPRIVATE" => "*" }
|
172
|
+
_, _, status = Open3.capture3(env, SharedHelpers.escape_command("go get #{repo_path}"))
|
173
|
+
raise Dependabot::DependencyFileNotResolvable, line if status.success?
|
174
|
+
|
175
|
+
raise Dependabot::GitDependenciesNotReachable, [repo_path]
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
159
180
|
def rev_identifier?(dep)
|
160
181
|
dep["Version"]&.match?(GIT_VERSION_REGEX)
|
161
182
|
end
|
@@ -118,9 +118,15 @@ module Dependabot
|
|
118
118
|
def run_go_mod_tidy
|
119
119
|
return unless tidy?
|
120
120
|
|
121
|
+
# NOTE(arslan): use `go mod tidy -e` once Go 1.16 is out:
|
122
|
+
# https://github.com/golang/go/commit/3aa09489ab3aa13a3ac78b1ff012b148ffffe367
|
121
123
|
command = "go mod tidy"
|
122
|
-
|
123
|
-
|
124
|
+
|
125
|
+
# we explicitly don't raise an error for 'go mod tidy' and silently
|
126
|
+
# continue here. `go mod tidy` shouldn't block updating versions
|
127
|
+
# because there are some edge cases where it's OK to fail (such as
|
128
|
+
# generated files not available yet to us).
|
129
|
+
Open3.capture3(ENVIRONMENT, command)
|
124
130
|
end
|
125
131
|
|
126
132
|
def run_go_vendor
|
@@ -132,7 +132,7 @@ module Dependabot
|
|
132
132
|
"~> #{parts.join('.')}"
|
133
133
|
end
|
134
134
|
|
135
|
-
#
|
135
|
+
# NOTE: Dep's caret notation implementation doesn't distinguish between
|
136
136
|
# pre and post-1.0.0 requirements (unlike in JS)
|
137
137
|
def convert_caret_req(req_string)
|
138
138
|
version = req_string.gsub(/^\^?v?/, "")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-go_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.126.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.126.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.126.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 1.6.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 1.6.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.20.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.20.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: simplecov-console
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|