Skip to content

[vcpkg-tool] Unable to run x-version-add --all #44682

@Neumann-A

Description

@Neumann-A

Describe the bug

$ ./vcpkg.exe x-add-version --all
E:\vcpkg_cache\downloads\tools\git-2.7.4-windows\mingw64/bin/git.exe: error: failed with exit code 128
note: while getting local treeish objects for ports
internal error: D:\a\_work\1\s\src\vcpkg\commands.add-version.cpp(438): Value was null

$ ./vcpkg.exe --version
vcpkg package management program version 2025-03-22-d4dd14112c2026ee57e59f966ecfa3b9137bd143

Environment
OS: windows
(Git bash, different version than used.)

To Reproduce
Don't know

Expected behavior
Version db being updated

Failure logs
see above

iluin@Iluinrandir MINGW64 /e/qt6-update (update_qt_6.8.3)
$ git --version
git version 2.49.0.windows.1

$ ./vcpkg.exe fetch git
E:\vcpkg_cache\downloads\tools\git-2.7.4-windows\mingw64/bin/git.exe

$ E:\\vcpkg_cache\\downloads\\tools\\git-2.7.4-windows\\mingw64/bin/git.exe --version
git version 2.43.0.windows.1

Either E:\vcpkg_cache\downloads\tools\git-2.7.4-windows\mingw64/bin/git.exe is wrong or the version mismatch between this and the git bash environment is the issue

Metadata

Metadata

Assignees

Labels

requires:tool-releaseAn issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions