diff --git a/scripts/_common.sh b/scripts/_common.sh index fff8768f0f..2418a9b657 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -46,3 +46,9 @@ if ! output=$( exit 1 fi + +if [ ! -f submodules/stack-graphs/stack-graphs/Cargo.toml ]; then + # We declare stack-graphs as our dependency in root's Cargo.toml so we need to + # check it out in order to run `cargo build` + git submodule update +fi