Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions micromamba/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ============

Expand Down
6 changes: 3 additions & 3 deletions micromamba/etc/profile.d/mamba.sh.in
Original file line number Diff line number Diff line change
@@ -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 in mamba 2.3.0."
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."
Expand All @@ -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: "
Expand Down
Loading