-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapcraft unable to resolve absolute paths when using LXD #147
Comments
👋 Thanks for opening your first issue here! If you have a question about using To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please describe your issue:
Hello!
As the title says snapcraft is unable to resolve absolute paths when trying to build a snap with lxd as provider.
I am building the electorn app using github actions, where kvm and multipass are unavailable, so i'm setting lxd as a provider like this:
Then I run
yarn publish
in my electron.forge app.What happens next is snapcraft is resolving the absolute path of the source
/home/user/app/out/
relative to the tmp directory created by this package. This also applies to the --output flag.I created a patch for myself where i copy the source to the tmp directory and provide the relative path to snapcraft.
The output is also set to the tmp directory and then i copy it back to my project.
Here is the patch:
Console output when you run electron-installer-snap with the environment variable
DEBUG='electron-installer-snap:*'
. Please include the stack trace if one exists.The first error i encountered was that snapcraft required multipass to be installed, which is not possible in a github action. It is fixed by setting lxd as provider as seen above (it might be nice to add it to some docs because I lost a lot of time trying to set it up)
Afterwards snapcraft was unable to determine the source-type of the source (because it couldn't resolve the directory). If source-type was then set to local it complained that the source is not a directory.
With the patch i provided above everything is working as expected.
What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the
snap()
function?I used
@electron-forge/maker-snap
and the javascript api ofelectron-installer-snap
directly.Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-quick-start
is a good starting point.
The text was updated successfully, but these errors were encountered: