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

Correct overrides reference to indicate that it wants schemed versions #159

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions vcpkg/reference/vcpkg-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ Exact version pins to use for specific dependencies. An array of Override object
| Name | Required | Type | Description |
|------|----------|--------|-------------|
| name | Yes | string | The port name |
| version | Yes | string | The pinned version |
| port-version | No | integer | The pinned port version |
| [version<br>version-semver<br>version-date<br>version-string](#version) | Yes | string | Upstream version information to pin |
| [port-version](#port-version) | No | integer | Port files revision to pin |

`"port-version"` can also be specified as a `#N` suffix in the `"version"` field. For example, `1.2.3#7`.
`"port-version"` can also be specified as a `#N` suffix in one of the fields. For example, `1.2.3#7`.

See also [versioning](../users/versioning.md#overrides) for more semantic details.

Expand All @@ -233,6 +233,9 @@ See also [versioning](../users/versioning.md#overrides) for more semantic detail
"overrides": [
{
"name": "arrow", "version": "1.2.3", "port-version": 7
},
{
"name": "openssl", "version-string": "1.1.1h#3"
}
]
```
Expand Down
4 changes: 3 additions & 1 deletion vcpkg/users/versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ For an override to take effect, the overridden package must form part of the dep
"name": "project",
"version-semver": "1.0.0",
"dependencies": [
"curl",
{ "name": "zlib", "version>=": "1.2.11#9" },
"fmt"
],
"builtin-baseline":"3426db05b996481ca31e95fff3734cf23e0f51bc",
"overrides": [
{ "name": "fmt", "version": "6.0.0" }
{ "name": "fmt", "version": "6.0.0" },
{ "name": "openssl", "version-string": "1.1.1h#3" }
]
}
```