Skip to content

Commit 1f9b6af

Browse files
committed
bininstall vdev
1 parent 1590128 commit 1f9b6af

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/changelog.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
path: tmp
6161
sparse-checkout: changelog.d/
6262

63+
- name: Prepare vdev
64+
run: |
65+
66+
6367
- name: Run changelog fragment checker
6468
if: env.SHOULD_RUN == 'true'
6569
run: |

scripts/environment/prepare.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Modules:
4949
wasm-pack
5050
markdownlint
5151
datadog-ci
52+
vdev
5253
5354
If a module requires rust then rustup will be automatically installed.
5455
By default, all modules are installed. To install only a subset:
@@ -169,3 +170,9 @@ if contains_module datadog-ci; then
169170
sudo npm install -g @datadog/[email protected]
170171
fi
171172
fi
173+
174+
if contains_module vdev; then
175+
if [[ "$(vdev --version 2>/dev/null)" != "vdev 0.1.0" ]]; then
176+
rustup run stable cargo "${install[@]}" vdev --version 0.1.0 --force --locked
177+
fi
178+
fi

vdev/src/commands/check/changelog_fragments.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ fn validate_fragment_contents(path: &Path, filename: &str) -> Result<()> {
127127
}
128128

129129
// Split on the first colon, take the remainder as names
130-
let names = last_line.split_once(':').map(|(_, rest)| rest.trim()).unwrap_or("");
131-
130+
let names = last_line.split_once(':').map_or("", |(_, rest)| rest.trim());
132131

133132
if names.is_empty() {
134133
return Err(anyhow!(

0 commit comments

Comments
 (0)