From 2f2b60daeb5bf0bf2f2b2cc7e321d72079ca2d95 Mon Sep 17 00:00:00 2001 From: "S. M. Mohiuddin Khan Shiam" <147746955+mohiuddin-khan-shiam@users.noreply.github.com> Date: Tue, 1 Jul 2025 03:05:52 +0600 Subject: [PATCH] [vcpkg script] Fix -skipDependencyChecks flag ignored in bootstrap.sh (#46216) Co-authored-by: Odio Marcelino --- scripts/bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index def842db1c..e4c5c1ca4d 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -22,7 +22,7 @@ do elif [ "$var" = "-buildTests" ]; then echo "Warning: -buildTests no longer has any effect; ignored." elif [ "$var" = "-skipDependencyChecks" ]; then - vcpkgSkipDependencyChecks="OFF" + vcpkgSkipDependencyChecks="ON" elif [ "$var" = "-musl" ]; then vcpkgUseMuslC="ON" elif [ "$var" = "-help" -o "$var" = "--help" ]; then @@ -70,7 +70,8 @@ fi vcpkgCheckRepoTool() { __tool=$1 - if [ "$vcpkgSkipDependencyChecks" = "ON" ]; then + # Only perform dependency checks when they are not explicitly skipped. + if [ "$vcpkgSkipDependencyChecks" = "OFF" ]; then if ! command -v "$__tool" >/dev/null 2>&1 ; then echo "Could not find $__tool. Please install it (and other dependencies) with:" echo "On Debian and Ubuntu derivatives:"