Skip to content

Commit

Permalink
add warning when using defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 7, 2024
1 parent c4a6e78 commit 5a9b863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libmamba/src/api/channel_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.

#include <iostream>
#include "mamba/api/channel_loader.hpp"
#include "mamba/core/channel_context.hpp"
#include "mamba/core/download_progress_bar.hpp"
Expand Down Expand Up @@ -63,6 +63,10 @@ namespace mamba
{
for (const auto& platform : channel.platforms())
{
if (channel.platform_url(platform).host() == "repo.anaconda.com") {
spdlog::warn("This is a commercial channel hosted by Anaconda.com. Please make sure you understand the TOS.");
}

auto sdires = SubdirData::create(
ctx,
channel_context,
Expand Down

0 comments on commit 5a9b863

Please sign in to comment.