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-tool] vcpkg fetch shouldn't require a setup registry cache #43369

Open
Neumann-A opened this issue Jan 21, 2025 · 1 comment
Open

[vcpkg-tool] vcpkg fetch shouldn't require a setup registry cache #43369

Neumann-A opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@Neumann-A
Copy link
Contributor

Repo: Unset LOCALAPPDATA in your local environment

(vcpkg) PS D:\vcpkg_folders\no_msvc_project> .\vcpkg\vcpkg.exe fetch cmake
both %LOCALAPPDATA% and %APPDATA% were unreadable
(vcpkg) PS D:\vcpkg_folders\no_msvc_project> $Env:VCPKG_DOWNLOADS
E:\vcpkg_cache\downloads

It works after setting up X_VCPKG_REGISTRIES_CACHE

(vcpkg) PS D:\vcpkg_folders\no_msvc_project> .\vcpkg\vcpkg.exe fetch ninja
Value of environment variable X_VCPKG_REGISTRIES_CACHE is not a directory: E:\vcpkg_cache\registries
(vcpkg) PS D:\vcpkg_folders\no_msvc_project> .\vcpkg\vcpkg.exe fetch ninja
E:\vcpkg_cache\downloads\tools\ninja-1.11.1-windows\ninja.exe

but there is no reason for vcpkg to look up that path since "fetch" doesn't use it.

@Mengna-Li
Copy link
Contributor

According to my understanding, the fetch command first goes to the vcpkg download path to search for the package. If it cannot be found, it will be downloaded and placed in the download path. Why search for the X_VCPKG_REGISTRIES_CACHE. @vicroms Can you help explain it? I couldn't find any relevant explanation.

@Mengna-Li Mengna-Li added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Jan 21, 2025
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

2 participants