dependabot-go_modules 0.140.1 → 0.142.0
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: 93ccbc8d286c5d1fe5953a54837a313d0776f00788757157fef2b28c1c9a8472
|
4
|
+
data.tar.gz: 379ae90a7453e93c684e0112bf130dc89c3e9e2355f33dffa6eb5a75d99f0001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced08eaf16398aea4147a85a400fee2bc1f72d93a5c52e8168ca71b352dfb759a179ae13090b19632a4088c40e8183a4f7a66698a98f06d0959f5fc827e5c731
|
7
|
+
data.tar.gz: 9eb48c20f2822ede56cac54dc199ccd4717fcc6b566696c4e55c3aac2c0bfd2f58305e7e0b9a7df91d869d2b56553497020864298a9176af9beb8f2b8c42828d
|
@@ -15,12 +15,14 @@ module Dependabot
|
|
15
15
|
ENVIRONMENT = { "GOPRIVATE" => "*" }.freeze
|
16
16
|
|
17
17
|
RESOLVABILITY_ERROR_REGEXES = [
|
18
|
-
# The checksum in go.sum does not match the
|
18
|
+
# The checksum in go.sum does not match the downloaded content
|
19
19
|
/verifying .*: checksum mismatch/.freeze,
|
20
20
|
/go: .*: go.mod has post-v\d+ module path/
|
21
21
|
].freeze
|
22
22
|
|
23
23
|
REPO_RESOLVABILITY_ERROR_REGEXES = [
|
24
|
+
/fatal: The remote end hung up unexpectedly/,
|
25
|
+
/repository '.+' not found/,
|
24
26
|
# (Private) module could not be fetched
|
25
27
|
/go: .*: git fetch .*: exit status 128/.freeze,
|
26
28
|
# (Private) module could not be found
|
@@ -36,6 +38,7 @@ module Dependabot
|
|
36
38
|
].freeze
|
37
39
|
|
38
40
|
MODULE_PATH_MISMATCH_REGEXES = [
|
41
|
+
/go get: \S+ updating to\n\s+\S+\sparsing\sgo.mod:\n\s+module declares its path as: \S+\n\s+but was required as: \S+/,
|
39
42
|
/go: ([^@\s]+)(?:@[^\s]+)?: .* has non-.* module path "(.*)" at/,
|
40
43
|
/go: ([^@\s]+)(?:@[^\s]+)?: .* unexpected module path "(.*)"/,
|
41
44
|
/go: ([^@\s]+)(?:@[^\s]+)?: .* declares its path as: ([\S]*)/m
|
@@ -193,8 +196,7 @@ module Dependabot
|
|
193
196
|
end
|
194
197
|
|
195
198
|
def in_repo_path(&block)
|
196
|
-
SharedHelpers.
|
197
|
-
in_a_temporary_repo_directory(directory, repo_contents_path) do
|
199
|
+
SharedHelpers.in_a_temporary_repo_directory(directory, repo_contents_path) do
|
198
200
|
SharedHelpers.with_git_configured(credentials: credentials) do
|
199
201
|
block.call
|
200
202
|
end
|
@@ -292,6 +294,10 @@ module Dependabot
|
|
292
294
|
raise Dependabot::OutOfDisk.new, error_message
|
293
295
|
end
|
294
296
|
|
297
|
+
if (matches = stderr.match(/Authentication failed for '(?<url>.+)'/))
|
298
|
+
raise Dependabot::PrivateSourceAuthenticationFailure, matches[:url]
|
299
|
+
end
|
300
|
+
|
295
301
|
# We don't know what happened so we raise a generic error
|
296
302
|
msg = stderr.lines.last(10).join.strip
|
297
303
|
raise Dependabot::DependabotError, msg
|
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.142.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-15 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.142.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.142.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: 2.5.0
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.2.
|
230
|
+
rubygems_version: 3.2.15
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Go modules support for dependabot
|