-
Notifications
You must be signed in to change notification settings - Fork 73
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
Registry docs: vcpkg.json should be baseline.json #390
Comments
I saw that the example registry repo actually has a vcpkg.json: https://github.com/microsoft/vcpkg-docs/blob/vcpkg-registry/vcpkg.json. But I don't think this is what the registries docs refer to. I think there are two (separate) confusing issues here:
@vicroms I'm currently trying to create a registry. Any advice on this? |
@patrikhuber have you looked at https://learn.microsoft.com/vcpkg/produce/publish-to-a-git-registry. That article explains how to use the
The article needs to be reworked a lot, so please read the clarifications below. In this case it is not a typo, the
That Versions databaseThe versions database is comprised of two components, the baseline file and a set of versions files. The BaselineAll registries must contain a file named The purpose of the baseline file is to describe the set of versions that are considered to be the latest for all ports in the registry. The layout of the file is a dictionary of named baselines. And each baseline must contain a dictionary that maps a port to its current version. For Git-based registries, a baseline named "default" is required to exist. Example {
"default": {
"foo": { "baseline": "1.0.0", "port-version": 0 },
"bar": { "baseline": "2024-08-01", "port-version": 1 },
"baz": { "baseline": "vista-xp", "port-version": 0 },
}
} Each baseline version entry is an object with the following properties:
Version filesEach port in the registry must have a corresponding versions file. The versions file is a JSON file named the same as its corresponding port, for example, a port named vcpkg expects the versions files to be stored in the following location The purpose of the versions file is two-fold:
The layout of the version file is an object containing a "versions" array, with each entry in that array being a version object. A version object must contain the following properties:
Example of {
"versions": [
{
"git-tree": "81e9fd75ff6a4fee6ab7a5d4d09e7e3a735fbaaa",
"version": "2.6.3",
"port-version": 4
},
{
"git-tree": "0bfff492ed0b9ee3f31bb7593443572bc0fcf2d4",
"version": "2.6.3",
"port-version": 3
},
{
"git-tree": "3b52e6aff44ca4e11335754570701f692ea14184",
"version": "2.6.3",
"port-version": 2
},
{
"git-tree": "622078647d4fff0a51a26a4ecff2ba9109e5764d",
"version": "2.6.3",
"port-version": 1
},
{
"git-tree": "73ad3c823ef701c37421b450a34271d6beaf7b07",
"version-string": "2.6.3",
"port-version": 0
},
{
"git-tree": "70ed3ae824a2f31ed56b6c6105232bfe2aebe43e",
"version-string": "2.6.2",
"port-version": 3
},
{
"git-tree": "abd29087cbcde4a7416618fea70094c09fa16c37",
"version-string": "2.6.2-3",
"port-version": 0
},
{
"git-tree": "963060040c3ca463d17136e39c7317efb15eb6a5",
"version-string": "2.6.2-2",
"port-version": 0
},
{
"git-tree": "548c90710d59c174aa9ab10a24deb69f1d75ff8f",
"version-string": "2.6.2-1",
"port-version": 0
},
{
"git-tree": "67d60699c271b7716279fdea5a5c6543929eb90e",
"version-string": "2.6.2",
"port-version": 0
}
]
} |
Type of issue
Typo
Description
Here:
You meant to write
baseline.json
, notvcpkg.json
, right? As far as I am aware, there's novcpkg.json
in a registry.The same text occurs once more further down on the docs page (two times in total).
Page URL
https://learn.microsoft.com/en-us/vcpkg/maintainers/registries
Content source URL
https://github.com/Microsoft/vcpkg-docs/blob/main/vcpkg/maintainers/registries.md
Document Version Independent Id
90493daf-4ff2-0055-23a9-f22ea9a63e26
Article author
@vicroms
Metadata
The text was updated successfully, but these errors were encountered: