Missing Hooks file


#1

Hello ,

I have created my charm but when I view all the default file in my directory , the Hooks as missing . Does the hooks file not supported in Juju latest version ?

Also , I have created Hooks manually but it’s giving an error when I try to deploy my charm by saying " There’s no Hooks directory "


#2

If you are writing a reactive charm then the hook files will be generated for you when running charm build. After the build you should find your deployable charm under $JUJU_REPOSITORY/[builds | xenial | ... ]. The hooks directory should be there under your charm name.