dependabot-go_modules 0.227.0 → 0.229.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25963c13733b77e18a851936eeae42c9c4179ea6b2a460bf56702f34bf6f225a
|
4
|
+
data.tar.gz: 2c8202f2db63396f85c38d76d3415a32679a38afe797299c3855f6e732dffc72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdad4b2f370fe4530cfa4962042cfa626973741c4339c6c79aa69e527c4d9fbe312f962b50f747c68a9b04bc9e28f71ebe5309be5b6f1b7a11dbaca3ac4fb3e7
|
7
|
+
data.tar.gz: 4fdc69f5455f88320bcce10b42a0d2ba54703977b7bcd233cd5ee98bb1721aa64ff03d14e1269b76d931a717b875807d6233035389a0ea8163cb154ad70185b8
|
@@ -266,7 +266,7 @@ module Dependabot
|
|
266
266
|
repo_error_regex = REPO_RESOLVABILITY_ERROR_REGEXES.find { |r| stderr =~ r }
|
267
267
|
if repo_error_regex
|
268
268
|
error_message = filter_error_message(message: stderr, regex: repo_error_regex)
|
269
|
-
ResolvabilityErrors.handle(error_message,
|
269
|
+
ResolvabilityErrors.handle(error_message, goprivate: @goprivate)
|
270
270
|
end
|
271
271
|
|
272
272
|
path_regex = MODULE_PATH_MISMATCH_REGEXES.find { |r| stderr =~ r }
|
@@ -5,29 +5,27 @@ module Dependabot
|
|
5
5
|
module ResolvabilityErrors
|
6
6
|
GITHUB_REPO_REGEX = %r{github.com/[^:@]*}
|
7
7
|
|
8
|
-
def self.handle(message,
|
8
|
+
def self.handle(message, goprivate:)
|
9
9
|
mod_path = message.scan(GITHUB_REPO_REGEX).last
|
10
10
|
raise Dependabot::DependencyFileNotResolvable, message unless mod_path
|
11
11
|
|
12
12
|
# Module not found on github.com - query for _any_ version to know if it
|
13
13
|
# doesn't exist (or is private) or we were just given a bad revision by this manifest
|
14
14
|
SharedHelpers.in_a_temporary_directory do
|
15
|
-
|
16
|
-
File.write("go.mod", "module dummy\n")
|
15
|
+
File.write("go.mod", "module dummy\n")
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
mod_split = mod_path.split("/")
|
18
|
+
repo_path = if mod_split.size > 3
|
19
|
+
mod_split[0..2].join("/")
|
20
|
+
else
|
21
|
+
mod_path
|
22
|
+
end
|
24
23
|
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
env = { "GOPRIVATE" => goprivate }
|
25
|
+
_, _, status = Open3.capture3(env, SharedHelpers.escape_command("go list -m -versions #{repo_path}"))
|
26
|
+
raise Dependabot::DependencyFileNotResolvable, message if status.success?
|
28
27
|
|
29
|
-
|
30
|
-
end
|
28
|
+
raise Dependabot::GitDependenciesNotReachable, [repo_path]
|
31
29
|
end
|
32
30
|
end
|
33
31
|
end
|
@@ -115,7 +115,7 @@ module Dependabot
|
|
115
115
|
|
116
116
|
def handle_subprocess_error(error)
|
117
117
|
if RESOLVABILITY_ERROR_REGEXES.any? { |rgx| error.message =~ rgx }
|
118
|
-
ResolvabilityErrors.handle(error.message,
|
118
|
+
ResolvabilityErrors.handle(error.message, goprivate: @goprivate)
|
119
119
|
elsif INVALID_VERSION_REGEX.match?(error.message)
|
120
120
|
raise Dependabot::DependencyFileNotResolvable, error.message
|
121
121
|
end
|
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.229.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-30 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.229.0
|
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.229.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.56.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: 1.
|
124
|
+
version: 1.56.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,7 +211,7 @@ licenses:
|
|
211
211
|
- Nonstandard
|
212
212
|
metadata:
|
213
213
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
214
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
214
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.229.0
|
215
215
|
post_install_message:
|
216
216
|
rdoc_options: []
|
217
217
|
require_paths:
|