From df49838739f0b56f032ef6d71a6e87a5b5c0cb9a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 1 Dec 2022 09:51:07 -0700 Subject: [PATCH] chore: add VERSION check in build-vscode.sh (#5823) --- ci/build/build-vscode.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/build/build-vscode.sh b/ci/build/build-vscode.sh index 631964d5e..154892798 100755 --- a/ci/build/build-vscode.sh +++ b/ci/build/build-vscode.sh @@ -42,6 +42,12 @@ main() { pushd lib/vscode + if [[ ! ${VERSION-} ]]; then + echo "VERSION not set. Please set before running this script:" + echo "VERSION='0.0.0' yarn build:vscode" + exit 1 + fi + # Set the commit Code will embed into the product.json. We need to do this # since Code tries to get the commit from the `.git` directory which will fail # as it is a submodule.