From 24ee0c30993cbe2b1c44c99c0dccac046014ab82 Mon Sep 17 00:00:00 2001
From: Ruben Arts <ruben.arts@hotmail.com>
Date: Tue, 2 Jan 2024 15:35:14 +0100
Subject: [PATCH] misc: move alpha to beta feature and toggle it off with env
 var

---
 src/project/manifest.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/project/manifest.rs b/src/project/manifest.rs
index 848fb6567..8aa992d25 100644
--- a/src/project/manifest.rs
+++ b/src/project/manifest.rs
@@ -86,7 +86,12 @@ impl Manifest {
             .as_ref()
             .map_or(false, |deps| !deps.is_empty())
         {
-            tracing::warn!("ALPHA feature enabled!\n\nIt looks like your project contains `[pypi-dependencies]`. This feature is currently still in an ALPHA state!\n\nYou may encounter bugs or weird behavior. Please report any and all issues you encounter on our github repository:\n\n\thttps://github.com/prefix-dev/pixi.\n");
+            match std::env::var("PIXI_BETA_WARNING_OFF") {
+                Ok(var) if var == *"true" => {}
+                _ => {
+                    tracing::warn!("BETA feature `[pypi-dependencies]` enabled!\n\nPlease report any and all issues here:\n\n\thttps://github.com/prefix-dev/pixi.\n\nTurn this warning off by setting the environment variable `PIXI_BETA_WARNING_OFF` to `true`.\n");
+                }
+            }
         }
 
         Ok(Self {