Expand the documentation a little

This commit is contained in:
Zanie Blue 2025-07-29 13:13:11 -05:00
parent adfbe02e85
commit 9a91e91f78
3 changed files with 9 additions and 5 deletions

View File

@ -517,8 +517,10 @@ pub struct ResolverInstallerOptions {
/// - `prefer-locked`: Prefer the versions pinned in the lockfile, if available.
///
/// When set to `prefer-locked`, uv will use the locked versions of packages specified in the
/// lockfile as preferences when resolving build dependencies during source builds. This helps
/// ensure that build environments are consistent with the project's resolved dependencies.
/// lockfile as preferences when resolving build dependencies during source builds, such that
/// the locked version of a package will be used as long as it doesn't conflict with version
/// constraints declared by the package being built. This helps ensure that build environments
/// are consistent with the project's resolved dependencies.
#[option(
default = "\"latest\"",
value_type = "str",

View File

@ -757,8 +757,10 @@ The strategy to use when resolving build dependencies for source distributions.
- `prefer-locked`: Prefer the versions pinned in the lockfile, if available.
When set to `prefer-locked`, uv will use the locked versions of packages specified in the
lockfile as preferences when resolving build dependencies during source builds. This helps
ensure that build environments are consistent with the project's resolved dependencies.
lockfile as preferences when resolving build dependencies during source builds, such that
the locked version of a package will be used as long as it doesn't conflict with version
constraints declared by the package being built. This helps ensure that build environments
are consistent with the project's resolved dependencies.
**Default value**: `"latest"`

2
uv.schema.json generated
View File

@ -47,7 +47,7 @@
}
},
"build-dependency-strategy": {
"description": "The strategy to use when resolving build dependencies for source distributions.\n\n- `latest`: Use the latest compatible version of each build dependency.\n- `prefer-locked`: Prefer the versions pinned in the lockfile, if available.\n\nWhen set to `prefer-locked`, uv will use the locked versions of packages specified in the\nlockfile as preferences when resolving build dependencies during source builds. This helps\nensure that build environments are consistent with the project's resolved dependencies.",
"description": "The strategy to use when resolving build dependencies for source distributions.\n\n- `latest`: Use the latest compatible version of each build dependency.\n- `prefer-locked`: Prefer the versions pinned in the lockfile, if available.\n\nWhen set to `prefer-locked`, uv will use the locked versions of packages specified in the\nlockfile as preferences when resolving build dependencies during source builds, such that\nthe locked version of a package will be used as long as it doesn't conflict with version\nconstraints declared by the package being built. This helps ensure that build environments\nare consistent with the project's resolved dependencies.",
"anyOf": [
{
"$ref": "#/definitions/BuildDependencyStrategy"