Comment 8 for bug 1669306

Revision history for this message
Stuart Bishop (stub) wrote :

Per comment #6, there is no environment configuration at all in the wrapper:

# cat command-juju-act.wrapper
#!/bin/sh
exec "juju-act" "$@"

The shebang of juju-act in the snap:

$ head -1 /snap/juju-act/current/bin/juju-act
#!/usr/bin/env python3

I can extract the environment settings from the working snap's command-juju-act.wrapper, and execute it manually inside the failing snap via snap run. If I do this, I can execute the Python script. It seems that the problem is that with snapcraft 2.27.1 the necessary environment is not being setup in the command wrapper. As I can reproduce this using Launchpad, it is no a problem with my local sysetm.