Skip to content
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

Troubleshooting update #2635

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 14 additions & 2 deletions docs/source/user_guide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,24 @@ Or in your :file:`~/.condarc` file:
Mamba broken after Conda update
-------------------------------

Mamba sometimes stops working if you update to a very recent version of Conda. Please downgrade to the latest working a version and file a bug report in the Mamba bug tracker if the problem has not been reported yet.
Mamba sometimes stops working if you update to a very recent version of Conda.
Please downgrade to the latest working a version and file a bug report in the Mamba bug tracker
if the problem has not been reported yet.

Mamba or Micromamba broken after an update
------------------------------------------

While we make our best effort to keep backward compatibility, it is not impossible that an update
breaks the current installation.
The following actions can be tried:

- Reinitializing your shell with `micromamba shell reinit`.
- Deleting the package cache (`"package cache"` entries in `micromamba info`)

libmamba.so.2: undefined symbol ...
-----------------------------------

See ref:`defaults_channels`.
See :ref:`defaults_channels`.

Windows long paths
------------------
Expand Down
23 changes: 13 additions & 10 deletions libmamba/src/api/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ namespace mamba
auto& ctx = Context::instance();
std::vector<std::tuple<std::string, nlohmann::json>> items;

items.push_back({"libmamba version", version()});

if (ctx.command_params.is_micromamba && !ctx.command_params.caller_version.empty())
{
items.push_back({"micromamba version", ctx.command_params.caller_version});
}

items.push_back({"curl version", curl_version()});
items.push_back({"libarchive version", archive_version_details()});

items.push_back({"envs directories", ctx.envs_dirs});
items.push_back({"package cache", ctx.pkgs_dirs});

std::string name, location;
if (!ctx.prefix_params.target_prefix.empty())
{
Expand Down Expand Up @@ -132,16 +145,6 @@ namespace mamba
};
items.push_back({"populated config files", sources});

items.push_back({"libmamba version", version()});

if (ctx.command_params.is_micromamba && !ctx.command_params.caller_version.empty())
{
items.push_back({"micromamba version", ctx.command_params.caller_version});
}

items.push_back({"curl version", curl_version()});
items.push_back({"libarchive version", archive_version_details()});

std::vector<std::string> virtual_pkgs;
for (auto pkg : get_virtual_packages())
{
Expand Down