Skip to content

Commit 7687723

Browse files
Run cargo xtask update-generated
Also update error message with the exact `update-generated` command to run Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent ca02877 commit 7687723

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

crates/xtask/src/man.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pub fn check_manpages(sh: &Shell) -> Result<()> {
665665
let filepath = Utf8Path::new("docs/src/man").join(&filename);
666666
if !filepath.exists() {
667667
anyhow::bail!(
668-
"{} is missing; run `cargo xtask update-generated` to create it",
668+
"{} is missing; run `cargo xtask update-generated from-code` to create it",
669669
filepath
670670
);
671671
}
@@ -730,7 +730,7 @@ fn check_markdown_options(
730730
};
731731
if new_content != content {
732732
anyhow::bail!(
733-
"{} is out of date; run `cargo xtask update-generated` to update it",
733+
"{} is out of date; run `cargo xtask update-generated from-code` to update it",
734734
markdown_path
735735
);
736736
}
@@ -751,7 +751,7 @@ fn check_markdown_subcommands(
751751
};
752752
if new_content != content {
753753
anyhow::bail!(
754-
"{} is out of date; run `cargo xtask update-generated` to update it",
754+
"{} is out of date; run `cargo xtask update-generated from-code` to update it",
755755
markdown_path
756756
);
757757
}

crates/xtask/src/tmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,13 +942,13 @@ pub(crate) fn check_integration() -> Result<()> {
942942

943943
if tests_generated != tests_on_disk {
944944
anyhow::bail!(
945-
"{} is out of date; run `cargo xtask update-generated` to update it",
945+
"{} is out of date; run `cargo xtask update-generated direct` to update it",
946946
tests_fmf_path
947947
);
948948
}
949949
if integration_generated != integration_on_disk {
950950
anyhow::bail!(
951-
"{} is out of date; run `cargo xtask update-generated` to update it",
951+
"{} is out of date; run `cargo xtask update-generated direct` to update it",
952952
integration_fmf_path
953953
);
954954
}

crates/xtask/src/xtask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ fn check_json_schemas(sh: &Shell) -> Result<()> {
624624
std::fs::read_to_string(target).with_context(|| format!("Reading {target}"))?;
625625
if generated != on_disk {
626626
anyhow::bail!(
627-
"{target} is out of date; run `cargo xtask update-generated` to update it"
627+
"{target} is out of date; run `cargo xtask update-generated from-code` to update it"
628628
);
629629
}
630630
}

docs/src/host-v1.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
"description": "The host image",
288288
"anyOf": [
289289
{
290-
"$ref": "#/$defs/ImageReference"
290+
"$ref": "#/$defs/ImageReferenceSig"
291291
},
292292
{
293293
"type": "null"
@@ -379,7 +379,7 @@
379379
}
380380
]
381381
},
382-
"ImageReference": {
382+
"ImageReferenceSig": {
383383
"description": "A container image reference with attached transport and signature verification",
384384
"type": "object",
385385
"properties": {
@@ -446,7 +446,7 @@
446446
},
447447
"image": {
448448
"description": "The currently booted image",
449-
"$ref": "#/$defs/ImageReference"
449+
"$ref": "#/$defs/ImageReferenceSig"
450450
},
451451
"imageDigest": {
452452
"description": "The digest of the fetched image (e.g. sha256:a0...);",

0 commit comments

Comments
 (0)