[vcpkg_from_github] Not able to download private GitHub repo with vcpkg_from_github and VCPKG_USE_HEAD_VERSION #19078
Labels
category:vcpkg-bug
The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Describe the bug
In case VCPKG_USE_HEAD_VERSION is enabled and private GitHub repo is specified in vcpkg_from_github - downloading fails with the following error: "Failed. Status: 22;"HTTP response code said error""
During the investigation, it appears that AUTHORIZATION_TOKEN is not passed to the vcpkg_download_distfile() command which retrieves VCPKG_HEAD_VERSION.
Environment
To Reproduce
Create a port file that uses private repo and enable VCPKG_USE_HEAD_VERSION:
Expected behavior
Repo is downloaded successfully and is ready to build process
Failure logs
Proposed fix in #19077
The text was updated successfully, but these errors were encountered: