Skip to content

feat(providers): add conda provider with micromamba, conda and mamba#621

Open
flashpoint493 wants to merge 1 commit intoloonghao:mainfrom
flashpoint493:feat/conda-provider-v2
Open

feat(providers): add conda provider with micromamba, conda and mamba#621
flashpoint493 wants to merge 1 commit intoloonghao:mainfrom
flashpoint493:feat/conda-provider-v2

Conversation

@flashpoint493
Copy link
Copy Markdown

Summary

Add Conda ecosystem provider supporting three runtimes:

  • micromamba (Recommended): Minimal standalone mamba, single binary (~10MB)
  • conda: Full Conda installation via Miniforge
  • mamba: Fast package manager bundled with Miniforge

Why Micromamba?

  • Single binary, no installer needed (fits vx's download -> extract -> use philosophy)
  • Fast and lightweight (~10MB vs ~400MB+ for full Conda)
  • Fully compatible with conda environments and packages
  • Can install PyTorch, TensorFlow, CUDA, etc.

Architecture

  • Uses provider.star (Starlark-based, current standard)
  • Registered via for_each_provider! macro (single-line addition)
  • Zero changes to core traits (vx-runtime, vx-paths)
  • 7 unit tests passing

Changes

  • New: crates/vx-providers/conda/ (6 files)
  • Modified: Cargo.toml (workspace member + dep)
  • Modified: crates/vx-cli/Cargo.toml (add dep)
  • Modified: crates/vx-cli/src/registry.rs (add to macro)

Usage

vx install micromamba
vx micromamba create -n ml python=3.11 pytorch -c pytorch
vx micromamba run -n ml python train.py

Supersedes #390 - clean reimplementation based on latest v0.8.4 architecture.

Closes #389

Add Conda ecosystem provider supporting three runtimes:

- micromamba: Minimal standalone mamba (single binary, recommended)

- conda: Full Conda installation via Miniforge

- mamba: Fast package manager bundled with Miniforge

Uses the current Starlark-based provider architecture (provider.star),

registered via for_each_provider! macro. Zero changes to core traits.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add musl static-linked Linux binary to releases

1 participant