Closed bernardobelchior closed 4 years ago
What I'm not sure here is whether hooks should be run in this order, or if they should replace the normal process altogether, rather than extending it.
I think this is a good start. What I'm more interested most in is if this solves your initial problem. I care more that it's solving a problem that how ideal it might be for some future case that may or may not exist. I like that thinks work as is with no configuration, so I like what you did here.
I have tested with my use case (installing and packaging a native dependency) and things seem to work! I'll set this PR a ready for review.
This PR adds the install, build and packages hooks (#6).
This is WIP, but already includes the functionality and tests. If the implementation looks good, I'll add some documentation.
The new process would be:
$@
install
hookcargo build
build
hookpackage
hookWhat I'm not sure here is whether hooks should be run in this order, or if they should replace the normal process altogether, rather than extending it.
Would like some opinions here.