mirror of https://github.com/astral-sh/uv
Expand the documentation a little
This commit is contained in:
parent
adfbe02e85
commit
9a91e91f78
|
|
@ -517,8 +517,10 @@ pub struct ResolverInstallerOptions {
|
||||||
/// - `prefer-locked`: Prefer the versions pinned in the lockfile, if available.
|
/// - `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
|
/// 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
|
/// lockfile as preferences when resolving build dependencies during source builds, such that
|
||||||
/// ensure that build environments are consistent with the project's resolved dependencies.
|
/// 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(
|
#[option(
|
||||||
default = "\"latest\"",
|
default = "\"latest\"",
|
||||||
value_type = "str",
|
value_type = "str",
|
||||||
|
|
|
||||||
|
|
@ -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.
|
- `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
|
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
|
lockfile as preferences when resolving build dependencies during source builds, such that
|
||||||
ensure that build environments are consistent with the project's resolved dependencies.
|
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"`
|
**Default value**: `"latest"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"build-dependency-strategy": {
|
"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": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/BuildDependencyStrategy"
|
"$ref": "#/definitions/BuildDependencyStrategy"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue