fix: Correct paths and suggestions in `etc/profile.d/mamba.sh` (#3865)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
This commit is contained in:
Julien Jerphanion 2025-03-19 12:08:57 +01:00 committed by GitHub
parent bd591115a1
commit d8a36eed43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,8 @@ cmake_policy(SET CMP0025 NEW) # Introduced in cmake 3.0
cmake_policy(SET CMP0077 NEW) # Introduced in cmake 3.13
project(micromamba)
include(GNUInstallDirs)
# Source files
# ============

View File

@ -1,6 +1,6 @@
echo "WARNING: @CMAKE_INSTALL_PREFIX@/etc/profile.d/mamba.sh (the file emitting this warning) is deprecated."
echo "WARNING: This file will be removed in mamba 2.1.0."
echo "WARNING: Please use 'mamba shell init' to get the correct shell scripts for your shell."
echo "WARNING: This file will be removed on the next release after 30th September 2025."
echo "WARNING: Please use 'mamba shell init' to get the correct initialization for your shell."
if [ -z "${MAMBA_ROOT_PREFIX}" ]; then
echo "WARNING: The MAMBA_ROOT_PREFIX environment variable is not set."
@ -9,7 +9,7 @@ if [ -z "${MAMBA_ROOT_PREFIX}" ]; then
echo "WARNING: For now, we are setting 'MAMBA_ROOT_PREFIX' to '@CMAKE_INSTALL_PREFIX@'."
echo "WARNING: "
echo "WARNING: Please make sure this is consistent with your installation or alternatively (by order of preference):"
echo "WARNING: - rerun 'mamba shell init -s posix' to get the correct value"
echo "WARNING: - rerun 'mamba shell init' to initialize mamba for your current shell"
echo "WARNING: - manually set 'MAMBA_ROOT_PREFIX' to the root of your installation in your shell profile script."
echo "WARNING: - use the '-r,--root-prefix' CLI option when calling mamba."
echo "WARNING: "