Skip to content

Commit

Permalink
build.rs: warn if cbordiag tools are not found
Browse files Browse the repository at this point in the history
Instead of panicking at built time, just warn about the cbor tools not
being found. At run-time, `spdm-utils` will return an error when
attempting decode a cbor encoded manifest from a responder.

This should not affect a responder as we already have pre-generated
manifests checked in the `manifests/` directory.

Signed-off-by: Wilfred Mallawa <[email protected]>
  • Loading branch information
twilfredo authored and alistair23 committed Nov 8, 2024
1 parent 5382fb3 commit 83c222c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ fn main() {
file.write_all(&pretty_format)
.expect("failed to write to `manifest.pretty`");
}
Err(e) => panic!("Ruby script {script} not found : error {}", e),
Err(e) => {println!("\x1b[33mcargo:warning=Ruby script {script} not found : error {}\x1b[0m", e)},
}
}
Err(e) => panic!("Ruby script {script} not found : error {}", e),
Err(e) => println!("\x1b[33mcargo:warning=Ruby script {script} not found : error {}\nSkipping fresh manifest generation\x1b[0m", e),
}
}

0 comments on commit 83c222c

Please sign in to comment.