You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sources modules in craft_parts executes subcommands without passing env vars. So when using the lib as a project running in a snap, env vars from the snap, and especially the PATH, are not considered.
See current log output of imagecraft spread tests. git is not found on the system (even though it is packaged in the snap), then installed. But the installed version is not compatible and unable to properly handle the given command.
Bug Description
The sources modules in craft_parts executes subcommands without passing env vars. So when using the lib as a project running in a snap, env vars from the snap, and especially the PATH, are not considered.
See current log output of imagecraft spread tests.
git
is not found on the system (even though it is packaged in the snap), then installed. But the installed version is not compatible and unable to properly handle the given command.See the related discussion on matrix for context.
To Reproduce
Create a simple craft app using craft_parts and consuming a part using a plugin calling the sources modules.
Example of a plugin in imagecraft: gadget plugin.
The following YAML is to be run with imagecraft. Following this how-to build a basic image with imagecraft on a 18.04 machine should reproduce the issue.
part yaml
Relevant log output
The text was updated successfully, but these errors were encountered: