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

Basic vcpkg installation instructions do not work #43896

Open
thomasnal opened this issue Feb 17, 2025 · 2 comments
Open

Basic vcpkg installation instructions do not work #43896

thomasnal opened this issue Feb 17, 2025 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@thomasnal
Copy link

thomasnal commented Feb 17, 2025

Describe the bug
The main installation instruction in vcpkg-tool does not work.

~$ . <(curl https://aka.ms/vcpkg-init.sh -L)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  3389  100  3389    0     0   4744      0 --:--:-- --:--:-- --:--:--  4744
curl: Failed writing body

Environment

  • OS: MacOS 15.3
  • Platform: Mac M1

To Reproduce
Steps to reproduce the behavior:

  1. Visit https://github.com/microsoft/vcpkg-tool/
  2. Copy install instructions . <(curl https://aka.ms/vcpkg-init.sh -L)
  3. Paste to terminal that is running bash
  4. See the error.

Expected behavior
vcpkg-tool downloaded and installed. no error.

Failure logs
see above in the report

Additional context
I'm looking for a solution for building a node package that has suddenly started to failed due vcpkg error:

npm error -- Updating /Users/thomas/vcpkg
npm error Already up to date.
npm error Downloading vcpkg-macos...
npm error vcpkg package management program version 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
npm error
npm error See LICENSE.txt for license information.
npm error -- Running vcpkg install
npm error error: try_read_contents("/Users/thomas/vcpkg/scripts/vcpkg-tools.json"): No such file or directory
@thomasnal
Copy link
Author

thomasnal commented Feb 17, 2025

It appears the issue originates from using a newer version of vcpkg binary in combination with an older commit of vcpkg repo.

$ vcpkg --version
vcpkg package management program version 2025-02-11-2025.02.11

See LICENSE.txt for license information.

vcpkg commit used by the package being compiled,

commit ee2d2a100103e0f3613c60655dcf15be7d5157b8
...
Date:   Wed Sep 11 09:42:43 2024 +0900

Overriding the projects vcpkg.json and CMakeLists.txt to use the newest vcpkg commit make the build process run. The scripts/vcpkg-tool.json is not the issue any more.

@LilyWangLL LilyWangLL added the category:question This issue is a question label Feb 18, 2025
@LilyWangLL
Copy link
Contributor

Thanks for posting this issue, vcpkg is continuously being updated. Each update fixes some bugs and adds new features. Please try to use the latest vcpkg repo in your projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants