Plugin system: transaction action plugins #13795
Labels
plugins
pertains to a plugin/subcommand
source::contributor
created by a frequent contributor
type::feature
request for a new feature or capability
Checklist
What is the idea?
Add a plugin hook to allow developing new transaction actions.
Why is this needed?
The transaction system is the natural fit for many post-solve operations that require access to the recently solved environment. I'm seeing this need in
conda-pip
andconda-checkpoints
, for example.The transaction API is also a natural fit for rollbacks and other operations that affect the disk (like placing files in strategic paths with
EXTERNALLY-MANAGED
or menuinst shortcuts).What should happen?
A new
transaction
plugin hook could be added to classes that inherit the_Action
API.Additional Context
This is similar to post-solves in a way, but not quite. Post-solves run before the transaction is created, don't have rollbacks and are more designed for additional checks, not operations in disk.
The text was updated successfully, but these errors were encountered: