Toolchain: Actually disable vcpkg metrics

In the move to a python version of this script, I didn't notice that
running the bootstrap script in shell mode precluded it from actually
accepting the -disableMetrics argument.

Existing vcpkg installs can be un-metrics'd by re-running the bootstrap
script with the disable argument, or by adding a vcpkg.disable-metrics
file in $VCPKG_ROOT
This commit is contained in:
Andrew Kaster 2024-12-03 17:47:14 -07:00 committed by Jelle Raaijmakers
parent 2d0fdf804e
commit e20a887a8d
Notes: github-actions[bot] 2024-12-04 10:16:19 +00:00

View file

@ -31,7 +31,7 @@ def main() -> int:
subprocess.check_call(args=["git", "checkout", git_rev], cwd=vcpkg_checkout)
bootstrap_script = "bootstrap-vcpkg.bat" if os.name == 'nt' else "bootstrap-vcpkg.sh"
subprocess.check_call(args=[vcpkg_checkout / bootstrap_script, "-disableMetrics"], cwd=vcpkg_checkout, shell=True)
subprocess.check_call(args=[vcpkg_checkout / bootstrap_script, "-disableMetrics"], cwd=vcpkg_checkout)
return 0