installation failure

Open Beginner friendly
#53,162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell

Research direction

Start with bootstrap-vcpkg.bat and scripts/bootstrap.ps1, then reproduce the failure on Windows 11 using the installation instructions. Compare the current PowerShell invocation with the proposed -File form and verify that bootstrapping completes and a subsequent vcpkg install no longer reports an unsupported tool-data schema.

Written by the indexing model from the issue text.

Description

category:port-bug
Operating system

Windows-11 64 bit

Compiler

N/A

Steps to reproduce the behavior
bootstrap-vcpkg.bat
fails to find bootstrap.psi on installation following the installation instructions


This could be an issue with the user setup from the first installation of windows 11, though adjusting this script in this way allows installation. 
could be a duplicate, or just an issue with an older installation of win-11, if this is true then this issue is closed, but if not then this change will fix the script.

--- a/bootstrap-vcpkg.bat
+++ b/bootstrap-vcpkg.bat
@@ -1,2 +1,2 @@
 @echo off
-powershell.exe -NoProfile -ExecutionPolicy Bypass "& {& \"%~dp0scripts\bootstrap.ps1\" %*}"
+powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\bootstrap.ps1" %*

would fix this myself, but not a maintainer on this repo and don't feel like making another dead branch copy of the repo.
Failure logs

stack trace:
PS C:\Users<username>\Git-Repos\vcpkg> .\vcpkg.exe install vulkan Computing installation plan... error: C:\Users\<username>\Git-Repos\vcpkg\scripts\vcpkg-tools.json: error: $ (a tool data file): document schema version 2 is not supported by this version of vcpkg
PS C:\Users<username>`\Git-Repos\vcpkg> .\bootstrap-vcpkg.bat
& : The term 'C:\Users<username>\Git-Repos\vcpkg\scripts\bootstrap.ps1' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:6

  • & {& "C:\Users<username>`\Git-Repos\vcpkg\scripts\bootstrap.ps1" }
  •  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Users<username>\Git-...s\bootstrap.ps1:String) [], C
      ommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
Additional context

No response

Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 21h
Merged PRs (30d)
310

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vcpkg

All issues in microsoft/vcpkg

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.