Skip to content

Reapply "[vcpkg scripts] Use vcpkg fetch for available tools" (#48986)#49242

Merged
vicroms merged 2 commits intomicrosoft:masterfrom
BillyONeal:revert-revert
Jan 7, 2026
Merged

Reapply "[vcpkg scripts] Use vcpkg fetch for available tools" (#48986)#49242
vicroms merged 2 commits intomicrosoft:masterfrom
BillyONeal:revert-revert

Conversation

@BillyONeal
Copy link
Member

@BillyONeal BillyONeal commented Jan 6, 2026

This reverts commit 7499ac9 ( #48986 ).

The issue that forced that revert for the holidays ( #48973 ) appears to be caused by a misconfiguration where an old vcpkg is used with a new scripts tree (or vice versa). We're working to make that misconfiguration less likely to happen but now that folks are back from the holidays this should be landed.

Fixes #48973

…oft#48986)

This reverts commit 7499ac9.

# Conflicts:
#	scripts/cmake/vcpkg_find_acquire_program(GIT).cmake
vicroms
vicroms previously approved these changes Jan 6, 2026
@BillyONeal
Copy link
Member Author

With some help from @AenBleidd showing that it happened even without the misconfiguration I got a repro on Arch. On Arch, the error variable had 'no such file or directory' and I think that is because ${DOWNLOADS} didn't exist yet. Sure enough, with that information I can trigger the failure even on Windows 😅

That is fixed in b458d22

@BillyONeal
Copy link
Member Author

@AenBleidd told me over discord that this works for them so I'm saying that this fixes the issue.

@vicroms vicroms merged commit db5f506 into microsoft:master Jan 7, 2026
17 checks passed
@BillyONeal BillyONeal deleted the revert-revert branch January 7, 2026 18:58
bsdcode added a commit to bsdcode/Ymir that referenced this pull request Jan 29, 2026
Recent vcpkg switched to using "vcpkg fetch ninja" for providing Ninja
to the build. This exposed a long-standing bug in the underlying vcpkg-
tool, which tried to find Ninja with an unreasonable version number on
platforms without a tool download link for Ninja. This broke the Ymir
build on FreeBSD.

Although this bug is already fixed in the master branch of vcpkg-tool,
there isn't a tagged release with the fix yet and vcpkg itself still
references the vcpkg-tool without the fix.

To unbreak the Ymir build on FreeBSD, a patch is provided which points
vcpkg to the first vcpkg-tool commit containing the fix. This patch is
applied in the CI and istructions are given in COMPILING.md.

References:
microsoft/vcpkg#49242
microsoft/vcpkg-tool#1897
microsoft/vcpkg-tool@9cf284d
bsdcode added a commit to bsdcode/Ymir that referenced this pull request Jan 29, 2026
Recent vcpkg switched to using "vcpkg fetch ninja" for providing Ninja
to the build. This exposed a long-standing bug in the underlying vcpkg-
tool, which tried to find Ninja with an unreasonable version number on
platforms without a tool download link for Ninja. This broke the Ymir
build on FreeBSD.

Although this bug is already fixed in the master branch of vcpkg-tool,
there isn't a tagged release with the fix yet and vcpkg itself still
references the vcpkg-tool without the fix.

To unbreak the Ymir build on FreeBSD, a patch is provided which points
vcpkg to the first vcpkg-tool commit containing the fix. This patch is
applied in the CI and instructions are given in COMPILING.md.

References:
microsoft/vcpkg#49242
microsoft/vcpkg-tool#1897
microsoft/vcpkg-tool@9cf284d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VCPKG failed to get compiler info on Linux and MacOS

2 participants