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 <wilfred.mallawa@wdc.com>
  • Loading branch information
twilfredo authored and alistair23 committed Nov 8, 2024
1 parent 3d6737a commit 1bf3c1b
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 1bf3c1b

Please sign in to comment.