dependabot-cargo 0.214.0 → 0.215.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: 322b4102293bdccc915642ebbf828d55d4f5e49d5312c67ff2f3e6466b76ebf9
|
|
4
|
+
data.tar.gz: c4711a27f467f9954f465e31a333c656e709e9362f14dc17db821892b6b7f643
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec0dc79fdc36411beed867c33ef0e04b64dd72783a40ecbb6831b9eddd5bd2ae0b77da32227c1fc5074accb7173156ca2e458ca2f4dee6e4e3f4a4044df2c97f
|
|
7
|
+
data.tar.gz: cea99ee29388a4edc86fa3191c4e5a9c271cab9b473f2e897133edc8e7748eb0f4fe7f6b46529fa30fe594f81083746bfd7b73ad71b3254b91141ecf1a8572e6
|
|
@@ -32,7 +32,7 @@ module Dependabot
|
|
|
32
32
|
SharedHelpers.with_git_configured(credentials: credentials) do
|
|
33
33
|
# Shell out to Cargo, which handles everything for us, and does
|
|
34
34
|
# so without doing an install (so it's fast).
|
|
35
|
-
run_shell_command("cargo update -p #{dependency_spec}")
|
|
35
|
+
run_shell_command("cargo update -p #{dependency_spec}", fingerprint: "cargo update -p <dependency_spec>")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
updated_lockfile = File.read("Cargo.lock")
|
|
@@ -135,7 +135,7 @@ module Dependabot
|
|
|
135
135
|
%(name = "#{dependency.name}"\nversion = "#{dependency.version}")
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
def run_shell_command(command)
|
|
138
|
+
def run_shell_command(command, fingerprint:)
|
|
139
139
|
start = Time.now
|
|
140
140
|
command = SharedHelpers.escape_command(command)
|
|
141
141
|
stdout, process = Open3.capture2e(command)
|
|
@@ -149,6 +149,7 @@ module Dependabot
|
|
|
149
149
|
message: stdout,
|
|
150
150
|
error_context: {
|
|
151
151
|
command: command,
|
|
152
|
+
fingerprint: fingerprint,
|
|
152
153
|
time_taken: time_taken,
|
|
153
154
|
process_exit_value: process.to_s
|
|
154
155
|
}
|
|
@@ -43,9 +43,7 @@ module Dependabot
|
|
|
43
43
|
write_temporary_dependency_files
|
|
44
44
|
|
|
45
45
|
SharedHelpers.with_git_configured(credentials: credentials) do
|
|
46
|
-
|
|
47
|
-
# so without doing an install (so it's fast).
|
|
48
|
-
run_cargo_command("cargo update -p #{dependency_spec} --verbose")
|
|
46
|
+
run_cargo_update_command
|
|
49
47
|
end
|
|
50
48
|
|
|
51
49
|
updated_version = fetch_version_from_new_lockfile
|
|
@@ -132,7 +130,16 @@ module Dependabot
|
|
|
132
130
|
spec
|
|
133
131
|
end
|
|
134
132
|
|
|
135
|
-
|
|
133
|
+
# Shell out to Cargo, which handles everything for us, and does
|
|
134
|
+
# so without doing an install (so it's fast).
|
|
135
|
+
def run_cargo_update_command
|
|
136
|
+
run_cargo_command(
|
|
137
|
+
"cargo update -p #{dependency_spec} --verbose",
|
|
138
|
+
fingerprint: "cargo update -p <dependency_spec> --verbose"
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def run_cargo_command(command, fingerprint: nil)
|
|
136
143
|
start = Time.now
|
|
137
144
|
command = SharedHelpers.escape_command(command)
|
|
138
145
|
stdout, process = Open3.capture2e(command)
|
|
@@ -146,6 +153,7 @@ module Dependabot
|
|
|
146
153
|
message: stdout,
|
|
147
154
|
error_context: {
|
|
148
155
|
command: command,
|
|
156
|
+
fingerprint: fingerprint,
|
|
149
157
|
time_taken: time_taken,
|
|
150
158
|
process_exit_value: process.to_s
|
|
151
159
|
}
|
|
@@ -291,7 +299,7 @@ module Dependabot
|
|
|
291
299
|
write_temporary_dependency_files(prepared: false)
|
|
292
300
|
|
|
293
301
|
SharedHelpers.with_git_configured(credentials: credentials) do
|
|
294
|
-
|
|
302
|
+
run_cargo_update_command
|
|
295
303
|
end
|
|
296
304
|
end
|
|
297
305
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-cargo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.215.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-12-
|
|
11
|
+
date: 2022-12-07 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.215.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.215.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: debug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|