Skip to content

Commit 75c525e

Browse files
authored
Merge pull request #626 from maresb/fix-update
Fix conda-lock --update --micromamba
2 parents 3ed4606 + e106354 commit 75c525e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

conda_lock/conda_lock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ def run_lock(
11071107
_conda_exe = determine_conda_executable(
11081108
conda_exe, mamba=mamba, micromamba=micromamba
11091109
)
1110+
logger.debug(f"Using conda executable: {_conda_exe}")
11101111
make_lock_files(
11111112
conda=_conda_exe,
11121113
src_files=environment_files,

conda_lock/conda_solver.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,7 @@ def update_specs_for_arch(
493493
for package in set(installed).difference(updated):
494494
entry = installed[package]
495495
fn = f'{entry["dist_name"]}.tar.bz2'
496-
if is_micromamba(conda):
497-
channel = f'{entry["base_url"]}'
498-
else:
499-
channel = f'{entry["base_url"]}/{entry["platform"]}'
496+
channel = f'{entry["base_url"]}/{entry["platform"]}'
500497
url = f"{channel}/{fn}"
501498
md5 = locked[package].hash.md5
502499
if md5 is None:

0 commit comments

Comments
 (0)