From d4c2c46f6e6829293ca36749dfda869d52463d9c Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 15 Dec 2024 09:44:59 -0500 Subject: [PATCH] Skip `--native-tls` in `pip compile` header (#9913) ## Summary I also omitted `--no-progress` (we omit `--verbose` and `--quiet` -- this seems similar). Part of: https://github.com/astral-sh/uv/issues/9873. --- crates/uv/src/commands/pip/compile.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/uv/src/commands/pip/compile.rs b/crates/uv/src/commands/pip/compile.rs index ffb0066d8e8e..e667bdde60f1 100644 --- a/crates/uv/src/commands/pip/compile.rs +++ b/crates/uv/src/commands/pip/compile.rs @@ -637,6 +637,18 @@ fn cmd( return Some(None); } + // Always skip the `--no-progress` flag. + if arg == "--no-progress" { + *skip_next = None; + return Some(None); + } + + // Always skip the `--native-tls` flag. + if arg == "--native-tls" { + *skip_next = None; + return Some(None); + } + // Return the argument. Some(Some(arg)) })