From 587c9b02a6fee616f33a85e5bc7e25a01cf94041 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 17 Nov 2024 18:54:26 -0800 Subject: [PATCH] Fix typo in environment variable name (#9186) https://github.com/astral-sh/uv/pull/9170/files#r1845768798 --- crates/uv-static/src/env_vars.rs | 2 +- crates/uv/tests/it/show_settings.rs | 4 +--- docs/reference/cli.md | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/uv-static/src/env_vars.rs b/crates/uv-static/src/env_vars.rs index 33c2f2db8..7099e0711 100644 --- a/crates/uv-static/src/env_vars.rs +++ b/crates/uv-static/src/env_vars.rs @@ -169,7 +169,7 @@ impl EnvVars { /// Equivalent to the `--no-verify-hashes` argument. Disables hash verification for /// `requirements.txt` files. - pub const UV_NO_VERIFY_HASHES: &'static str = "UV_VERIFY_HASHES"; + pub const UV_NO_VERIFY_HASHES: &'static str = "UV_NO_VERIFY_HASHES"; /// Equivalent to the `--allow-insecure-host` argument. pub const UV_INSECURE_HOST: &'static str = "UV_INSECURE_HOST"; diff --git a/crates/uv/tests/it/show_settings.rs b/crates/uv/tests/it/show_settings.rs index 2f964484b..88de082d9 100644 --- a/crates/uv/tests/it/show_settings.rs +++ b/crates/uv/tests/it/show_settings.rs @@ -5685,9 +5685,7 @@ fn verify_hashes() -> anyhow::Result<()> { link_mode: Clone, compile_bytecode: false, sources: Enabled, - hash_checking: Some( - Verify, - ), + hash_checking: None, upgrade: None, reinstall: None, }, diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 16edb5f3e..b23e21922 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -5757,7 +5757,7 @@ uv pip sync [OPTIONS] ...

By default, uv will verify any available hashes in the requirements file, but will not require that all requirements have an associated hash. To enforce hash validation, use --require-hashes.

-

May also be set with the UV_VERIFY_HASHES environment variable.

+

May also be set with the UV_NO_VERIFY_HASHES environment variable.

--offline

Disable network access.

When disabled, uv will only use locally cached data and locally available files.

@@ -6134,7 +6134,7 @@ uv pip install [OPTIONS] |--editable By default, uv will verify any available hashes in the requirements file, but will not require that all requirements have an associated hash. To enforce hash validation, use --require-hashes.

-

May also be set with the UV_VERIFY_HASHES environment variable.

+

May also be set with the UV_NO_VERIFY_HASHES environment variable.

--offline

Disable network access.

When disabled, uv will only use locally cached data and locally available files.

@@ -7729,7 +7729,7 @@ uv build [OPTIONS] [SRC]

By default, uv will verify any available hashes in the requirements file, but will not require that all requirements have an associated hash. To enforce hash validation, use --require-hashes.

-

May also be set with the UV_VERIFY_HASHES environment variable.

+

May also be set with the UV_NO_VERIFY_HASHES environment variable.

--offline

Disable network access.

When disabled, uv will only use locally cached data and locally available files.