Yes, fair point. Any kind of auto-inferring is going to risk being fragile. Clear and straightforward guidance is probably a much more robust solution.
I suppose that what I'm really looking for is some protection against the situation I encountered where the autogenerated command wrapper does not invoke anything inside the actual snap (see: https://lists.ubuntu.com/archives/snapcraft/2017-February/003301.html). Would that be a more reasonable 'magic' (i.e. you're expected to get the command path right, but snapcraft can detect if you got it wrong)?
Yes, fair point. Any kind of auto-inferring is going to risk being fragile. Clear and straightforward guidance is probably a much more robust solution.
I suppose that what I'm really looking for is some protection against the situation I encountered where the autogenerated command wrapper does not invoke anything inside the actual snap (see: https:/ /lists. ubuntu. com/archives/ snapcraft/ 2017-February/ 003301. html). Would that be a more reasonable 'magic' (i.e. you're expected to get the command path right, but snapcraft can detect if you got it wrong)?