installation failure
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
- Domain
- build-system, tooling
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
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
- CategoryInfo : ObjectNotFound: (C:\Users<username>\Git-...s\bootstrap.ps1:String) [], C
Additional context
No response
- Dominant language
- CMake
- Stars
- 27.5k
- Forks
- 7.7k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 310
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vcpkg
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
agentic-workflows cascade-suspected
Difficulty 1/5 Under an hour Newbie friendliness 88/100