While there seems to be a regression, the bug here is explicitly about using command-chain for hooks and not the regression in wrapper generation we have.
I am, and have been +1, on automatically setting snapcraft's command-chain for hooks for core20 and on but only for what seems to be called "trampolined" hooks.
hooks coming from "snap/hooks" should be as vanilla as they are, anyone writing hooks that way knows what they are doing and can set "environment" and "command-chain" in snapcraft.yaml (and consequently snap.yaml)
While there seems to be a regression, the bug here is explicitly about using command-chain for hooks and not the regression in wrapper generation we have.
I am, and have been +1, on automatically setting snapcraft's command-chain for hooks for core20 and on but only for what seems to be called "trampolined" hooks.
hooks coming from "snap/hooks" should be as vanilla as they are, anyone writing hooks that way knows what they are doing and can set "environment" and "command-chain" in snapcraft.yaml (and consequently snap.yaml)