Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting channel order for a command #16

Closed
clintval opened this issue Oct 8, 2019 · 2 comments
Closed

Setting channel order for a command #16

clintval opened this issue Oct 8, 2019 · 2 comments
Labels
wontfix This will not be worked on

Comments

@clintval
Copy link

clintval commented Oct 8, 2019

Exciting! I too was using UDST/ansible-conda for awhile but the project looks unmaintained. How would I go about setting either the default channel order, or adding channels for an install command? See other feature request here: UDST/ansible-conda#26

@evandam
Copy link
Owner

evandam commented Jan 14, 2020

Hi @clintval, sorry for the delay. Like the project from UDST, this just passes the channels listed as command line arguments to conda. The order of the list provided should be preserved, but I'm unaware if there's a way to enforce any kind of ordering.

Alternatively, you could set config file first, and this would pick up the values you set.

Closing this out since I don't think it's a change that would be made here if you agree.

Thanks!

@evandam evandam closed this as completed Jan 14, 2020
@evandam evandam added the wontfix This will not be worked on label Jan 14, 2020
@clintval
Copy link
Author

Thanks @evandam! Passing channels to conda only appends the channels to the list already defined in the configuration file. So, indeed, the solution would be to provide a .condarc with channels already set. I was hoping to see this as a first-class feature in the DSL of Ansible. If I find time to revisit this, I'll let you know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants