From 354af5ad8294ad8f3de3f7ad6aeaf8752d5f2625 Mon Sep 17 00:00:00 2001
From: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Date: Thu, 24 Oct 2024 11:45:16 +0200
Subject: [PATCH] fix: use right options for uv with extras deps

`--extras` is not the right command for `uv`. It's `--extra` instead.

Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
---
 templates/gitlab-ci-python.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml
index 13f66d3..b2d029d 100644
--- a/templates/gitlab-ci-python.yml
+++ b/templates/gitlab-ci-python.yml
@@ -704,7 +704,7 @@ variables:
         log_warn "Using uv but \\e[33;1muv.lock\\e[0m file not found: you shall commit it with your project files"
       fi
       maybe_install_uv
-      uv sync --frozen ${PYTHON_EXTRA_DEPS:+--extras "$PYTHON_EXTRA_DEPS"}
+      uv sync --frozen ${PYTHON_EXTRA_DEPS:+--extra "$PYTHON_EXTRA_DEPS"}
       ;;
     esac
   }
-- 
GitLab