dependabot-go_modules 0.126.1 → 0.127.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 +4 -4
- data/lib/dependabot/go_modules/file_updater/go_mod_updater.rb +11 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dfaae749c4420411ee664ba4c96615a2cd8245a2b70f26d78c37f803abfce2f
|
4
|
+
data.tar.gz: 5e6b13e4676fd6d46b57394fbf28716f30f8afd72da57db75a42150f096f45fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88776004dfe840cf109d8f06ec4bb2471ac0cf7be9607246a0497e55df3f37cb3f51746a93e81d55ed9e5ea0229a2e0f349f917c1e669015d6235e93adc86be
|
7
|
+
data.tar.gz: 8672e6a60410b21b288fa2ad6a7ba48a1d3fec6040a98ca8f1af12e82a5dd42f964e18c729b5b15c487879684243a7c160c48460e0b963888b93c04cc8583e38
|
@@ -35,6 +35,11 @@ module Dependabot
|
|
35
35
|
/go: ([^@\s]+)(?:@[^\s]+)?: .* declares its path as: ([\S]*)/m
|
36
36
|
].freeze
|
37
37
|
|
38
|
+
OUT_OF_DISK_REGEXES = [
|
39
|
+
%r{input/output error}.freeze,
|
40
|
+
/no space left on device/.freeze
|
41
|
+
].freeze
|
42
|
+
|
38
43
|
def initialize(dependencies:, credentials:, repo_contents_path:,
|
39
44
|
directory:, options:)
|
40
45
|
@dependencies = dependencies
|
@@ -265,6 +270,12 @@ module Dependabot
|
|
265
270
|
new(go_mod_path, match[1], match[2])
|
266
271
|
end
|
267
272
|
|
273
|
+
out_of_disk_regex = OUT_OF_DISK_REGEXES.find { |r| stderr =~ r }
|
274
|
+
if out_of_disk_regex
|
275
|
+
lines = stderr.lines.select { |l| out_of_disk_regex =~ l }
|
276
|
+
raise Dependabot::OutOfDisk.new, lines.join
|
277
|
+
end
|
278
|
+
|
268
279
|
# We don't know what happened so we raise a generic error
|
269
280
|
msg = stderr.lines.last(10).join.strip
|
270
281
|
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.127.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-14 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.127.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.127.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|