feat: add support for uv and conda#4
Merged
Conversation
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
Owner
Author
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3
实现内容 (How)
UV 支持 (src/sources/uv.rs):
uv.toml配置文件而非环境变量。uv.toml(项目级),若不存在则修改全局配置 (如~/.config/uv/uv.toml)。cmirror作为子进程无法持久化修改父 Shell 的环境变量,且修改 Shell 配置文件(如.zshrc)侵入性过强,因此选择官方支持的uv.toml配置文件方案。这与其他工具(npm, pip)的处理方式保持一致,确保配置的持久性和安全性。Conda 支持 (src/sources/conda.rs):
~/.condarc。default_channels和custom_channels,确保conda-forge等频道也能指向对应的镜像源。原因 (Why)