travitch / build-bom

Dynamically discover the commands used to create a piece of software
Apache License 2.0
45 stars 8 forks source link

Stop on build-bom errors during testing #46

Closed kquick closed 1 year ago

kquick commented 1 year ago

Build-bom normally performs all bitcode generation operations behind the scenes and does not propagate errors from those operations out to the main build. This is the desired operational mode for normal use, but when doing local testing of build-bom itself, stopping on any error is more useful. This patch introduces a new option that is only settable by code (not by any command-line flag) which causes build-bom to stop on any failure.

This also adds a new test and cleans up some minor source elements.