Skip to content

fix: Clone pip packages with environment#4153

Draft
jjerphan wants to merge 1 commit intomamba-org:mainfrom
jjerphan:fix/clone-pip-packages-with-environment
Draft

fix: Clone pip packages with environment#4153
jjerphan wants to merge 1 commit intomamba-org:mainfrom
jjerphan:fix/clone-pip-packages-with-environment

Conversation

@jjerphan
Copy link
Member

Description

Follow up of #4102 (comment).

Type of Change

  • Bugfix
  • Feature / enhancement
  • CI / Documentation
  • Maintenance

Checklist

  • My code follows the general style and conventions of the codebase, ensuring consistency
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run pre-commit run --all locally in the source folder and confirmed that there are no linter errors.
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

@github-actions github-actions bot added the release::bug_fixes For PRs fixing bugs label Jan 27, 2026
@jjerphan jjerphan marked this pull request as ready for review January 27, 2026 09:08
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 0% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.10%. Comparing base (b98c281) to head (5cae6b0).

Files with missing lines Patch % Lines
libmamba/src/api/create.cpp 0.00% 36 Missing ⚠️
libmamba/src/api/utils.cpp 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4153      +/-   ##
==========================================
- Coverage   51.13%   51.10%   -0.04%     
==========================================
  Files         236      236              
  Lines       27645    27664      +19     
  Branches     2832     2833       +1     
==========================================
  Hits        14137    14137              
- Misses      13505    13524      +19     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jjerphan jjerphan marked this pull request as draft January 27, 2026 10:04
@jjerphan jjerphan force-pushed the fix/clone-pip-packages-with-environment branch 6 times, most recently from 712a0e9 to fa5a935 Compare January 28, 2026 15:38
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan force-pushed the fix/clone-pip-packages-with-environment branch 3 times, most recently from 5cae6b0 to 635aca1 Compare January 29, 2026 09:52
@jjerphan
Copy link
Member Author

Actually, it would be worth refactoring a few elements to reuse the code for exporting a YAML file specification from an environment and creating one from such a specification.

Comment on lines +153 to +154
// Install packages from config
const auto& install_specs_vec = config.at("specs").value<std::vector<std::string>>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inspired from one of the install path, but we must not install those specifications modifying the configuration…

@jjerphan
Copy link
Member Author

#4158 should come first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::bug_fixes For PRs fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants