Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg upgrade] vcpkg crashes when running command upgrade #23549

Closed
FrankHeimes opened this issue Mar 14, 2022 · 1 comment
Closed

[vcpkg upgrade] vcpkg crashes when running command upgrade #23549

FrankHeimes opened this issue Mar 14, 2022 · 1 comment
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@FrankHeimes
Copy link
Contributor

Describe the bug
vcpkg crashes with an internal error when running upgrade

Environment

  • OS: Windows 10 1809

To Reproduce
Steps to reproduce the behavior:

  1. Modify line 1 in the Powershell script (see below) so that it includes a path to git.exe.
  2. Run the script.

Expected behavior
Executes the upgrade command as designed.

Actual behavior
internal error: D:\a_work\1\s\src\vcpkg\commands.upgrade.cpp(191): vcpkg has crashed; no additional details are available.

Test Script

# Add a path to git.exe > version 2.21
$env:PATH = "${env:ProgramFiles}\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;${env:PATH}"

git config --global init.defaultBranch master
git init
git pull https://github.com/Microsoft/vcpkg

New-Item -ItemType File '.vcpkg-root' -ErrorAction SilentlyContinue
scripts\bootstrap.ps1 -disableMetrics

$packages = Write-Output  assimp boost directxtk12 cgal eigen3 libarchive libjpeg-turbo ms-gsl opencv4 wtl wt xmlsec qt5
$triplets = Write-Output  x64-windows-static  x86-windows-static  x64-windows-static-md  x86-windows-static-md

.\vcpkg update

$installations = foreach ($package in $packages) { foreach ($triplet in $triplets) { "${package}:$triplet" }}
.\vcpkg upgrade --no-dry-run --keep-going $installations
@LilyWangLL LilyWangLL assigned JackBoosY and unassigned LilyWangLL Mar 15, 2022
@JackBoosY JackBoosY changed the title vcpkg crashes when running command upgrade [vcpkg upgrade] vcpkg crashes when running command upgrade Mar 15, 2022
@JackBoosY
Copy link
Contributor

Duplicated of #21117.

@JackBoosY JackBoosY added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

No branches or pull requests

3 participants