Hook charms have been unsupported in much of jhack for a long time.
But jhack’s most beloved stakeholder (and the most vocal feature-requester) AKA the Data Platform team here at Canonical has rightfully complained that jhack fire is quite useful to use in non-ops charms too.
And, it turns out, adding support for it was quite simple too.
Soon coming to edge, jhack 0.4.4.0.4 will bring you jhack fire myhookscharm/0 update-status.
Instead of juju-exec’ing the dispatch script in the charm, jhack will detect its absence and look instead for <charm_root>/hooks/update-status and execute that instead.
And surprisingly, it all “just works”
!
Try it out and let me know!