Comment 2 for bug 1824255

Revision history for this message
Ian Johnson (anonymouse67) wrote : Re: snapcraft+snapd should allow generating/using wrappers for hooks

Can you give an example of creating hooks through a snapcraft part? Would we just copy hooks from somewhere in the git tree to $SNAPCRAFT_PART_INSTALL/meta/hooks/intstall, etc. ?

Also using environment at a global level doesn't solve the issue for snaps like this because the environment variables we need are not static, as shown in the snippet above they are runtime dependent.