Skip to content

Commit

Permalink
Remove references to deprecated first-match (#10036)
Browse files Browse the repository at this point in the history
## Summary

This is a backwards-compatible alias for `first-index`.

Closes #10031.
  • Loading branch information
charliermarsh authored Dec 19, 2024
1 parent 5c6e584 commit 5a3826d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,7 @@ pub struct VenvArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(long, value_enum, env = EnvVars::UV_INDEX_STRATEGY)]
Expand Down Expand Up @@ -3992,7 +3992,7 @@ pub struct ToolUpgradeArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(
Expand Down Expand Up @@ -4656,7 +4656,7 @@ pub struct InstallerArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(
Expand Down Expand Up @@ -4798,7 +4798,7 @@ pub struct ResolverArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(
Expand Down Expand Up @@ -4988,7 +4988,7 @@ pub struct ResolverInstallerArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(
Expand Down Expand Up @@ -5159,7 +5159,7 @@ pub struct FetchArgs {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[arg(
Expand Down
4 changes: 2 additions & 2 deletions crates/uv-settings/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ pub struct ResolverInstallerOptions {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[option(
Expand Down Expand Up @@ -905,7 +905,7 @@ pub struct PipOptions {
/// The strategy to use when resolving against multiple index URLs.
///
/// By default, uv will stop at the first index on which a given package is available, and
/// limit resolutions to those present on that first index (`first-match`). This prevents
/// limit resolutions to those present on that first index (`first-index`). This prevents
/// "dependency confusion" attacks, whereby an attacker can upload a malicious package under the
/// same name to an alternate index.
#[option(
Expand Down
Loading

0 comments on commit 5a3826d

Please sign in to comment.