Skip to content

Commit

Permalink
Modify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Dec 16, 2024
1 parent 0c40a1b commit 64f281a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion libmamba/src/api/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,6 @@ namespace mamba
{
// Check that "root_prefix/envs" is already in the dirs,
// and append if not - to match `conda`
// Therefore, there is no need for a fallback value anymore
fs::u8path default_env_dir = context.prefix_params.root_prefix / "envs";
if (std::find(dirs.begin(), dirs.end(), default_env_dir) == dirs.end())
{
Expand Down
4 changes: 3 additions & 1 deletion libmamba/tests/src/core/test_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ namespace mamba
TEST_CASE_METHOD(Configuration, "envs_dirs")
{
// Load default config
// `envs_dirs` should be set to `root_prefix / envs`
config.load();

// `envs_dirs` should be set to `root_prefix / envs`
const auto& envs_dirs = config.at("envs_dirs").value<std::vector<fs::u8path>>();
REQUIRE(envs_dirs.size() == 1);
REQUIRE(
Expand All @@ -562,6 +562,8 @@ namespace mamba

load_test_config(rc1);

// `envs_dirs` should be set to the configured value `cache1`
// and `root_prefix / envs`
REQUIRE(
config.dump()
== "envs_dirs:\n - " + cache1 + "\n - "
Expand Down

0 comments on commit 64f281a

Please sign in to comment.