I am working on publishing the Vicegerent app as a snap. The app lets you run commands specified in a config file invoked by an HTTP request.
For instance, the config might be to run
docker-compose up upon receiving a request to some URL.
The app works fine outside a snap, but inside a snap it cannot find
docker-compose up in the
$PATH, although the snap is in devmode.
The app is written in Go and the commands are executed like that:
cmd := exec.Command('foo', 'bar') err := cmd.Run()
How to fix that issue?