-
Notifications
You must be signed in to change notification settings - Fork 104
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
Better integration with conda
commands
#759
Comments
conda
commands
Thanks, @travishathaway, for starting this conversation! This is indeed a worthy goal that could significantly improve the user experience for conda-lock, but as you've anticipated, it's quite ambitious given the current state of the project. I’d like to outline a few areas that I think would need to be addressed to make this a reality:
Personally, I wish I had the time to tackle these challenges, but my paid freelancing work keeps me very busy. I’ve also raised this with @jezdez in private communication. Thanks again for initiating this discussion. Being ambitious like this certainly puts the current challenges into perspective, and hope we can find a way to make this happen. |
@maresb Yep, @travishathaway wasn't aware of our emails, it's a timely reminder that lockfiles are important, and we should definitely figure out how to work on this together. I emailed you to discuss this further, in particular how to make this sustainable for you. |
Checklist
What is the idea?
As user, when I run regular commands like
conda install
andconda update
, I want my lock file to be automatically updated like it is when you usenpm install
ornpm update
. This should be enabled via a configuration option in.condarc
.For example, if I were to enable automatic lock file generation in for conda-lock in my
.condarc
file via the following configuration setting:When I run a command like:
a lock file will be created and placed in the environment root or saved explicitly somewhere else.
We could also explore the possibility of adding a plugin hook to add new options to commands in conda, so that something like the following would be possible:
By passing the
--lock
option toconda create
, conda lock will be cued to automatically create a lock file for the newly created environment.Why is this needed?
Having to use a separate
install
command is confusing for users of conda new to the conda lock project. It would be easier to use if it simply integrated into existing conda commands via plugin hooks.What should happen?
I would like to see if there are others who agree with this feature request and whether we could scope out how hard this would be to implement. I know it's a pretty big change with how conda-lock currently works, so I understand if this feature request is considered inappropriate.
Additional Context
My primary motivation for writing this is figuring out how to make environment locking a better user experience in conda.
The text was updated successfully, but these errors were encountered: