Use builtin-baseline from vcpkg.json

See original GitHub issue

I would suggest to support builtin-baseline (reference). It could replace vcpkgGitCommitId.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
equeimcommented, Jan 23, 2022

Yeah, second point about hashing was unrelated, I added it because I mentioned vcpkg-configuration.json and noticed that run-vcpkg doesn’t hash it by default. Sorry for the confusion.

What I meant was that baseline commit can be specified in both vcpkg.json and vcpkg-configuration.json. In the second form it would look like this object inside root object in vcpkg-configuration.json:

  "default-registry": {
    "kind": "builtin",
    "baseline": "df40d1c476dc02d71b113e4a63c3a32b00ebb5bd"
  }

So the logic that will look for commit id in vcpkg.json will also need to look in vcpkg-configuration.json. If both files have baseline commit, then vcpkg will use one provided in vcpkg-configuration.json.

1reaction
Shaturcommented, Nov 17, 2021

@lukka Exactly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Versioning - vcpkg - Read the Docs
To add an initial "builtin-baseline" , use vcpkg x-update-baseline --add-initial-baseline . To update baselines in a manifest, use vcpkg x-update-baseline .
Read more >
Get Started with Versioning - vcpkg
vcpkg lets you take control of which version of packages to install in your projects using manifests. Using versions with manifests. Let's start...
Read more >
Take control of your vcpkg dependencies with versioning ...
And lastly, we declare a “ builtin-baseline ”, the value of which is a commit SHA from the vcpkg repository. In our example,...
Read more >
vcpkg - How to update a dependency to a specific git commit ...
commit all your changes to the vcpkg repository, modify your manifest file (vcpkg.json) builtin-baseline field to refer to the latest commit ...
Read more >
[C++] Update vcpkg.json builtin-baseline - Apache
To support GCS I need to add this package to the cpp/vcpkg.json file. I also want to take advantage of features to keep...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found