-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Problem building on snapcraft.io due to DNS problem #1075
Comments
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
This isn't caused by Electron Packager. In your log, I see:
I don't know if snapcraft.io build machines have network access, but that's certainly necessary to install Electron prebuilt binaries unless you do some node_modules caching somehow. I would recommend using |
@malept Thanks for the feedback. I've brought up the potential network issue on the Snapcraft forums.
|
This may be an interesting feature request for that module that you should file in its issue tracker. I would need to think about what the interaction would be for that. |
For the record, our build machines do have network access, but require use of a proxy to reach the outside world. I think something in electron-packager or one of its dependent modules must be ignoring the proxy (which is configured using the standard |
Thanks @cjwatson! @malept Looking through the commit log I see a recent commit dc31cac which was meant to improve proxy support. Is there an argument I can pass to Thanks |
I may very well be missing something, but @electron/get's documentation says that downstream packages should call |
In fact: you could check if this is the problem by setting |
@cjwatson Thanks for the tip. @malept I can confirm this is the case. When I set It seems that |
As of Electron Packager 14.1.1, proxy support is always enabled when using the CLI (#1077). |
@malept Thanks! |
Issue Details
Expected Behavior
Can build an electron-based kiosk snap on build.snapcraft.io using this tutorial.
Actual Behavior
Output of build:
To Reproduce
Follow this tutorial.
Additional Information
I'm having a problem building two projects (shell and shell-kiosk) where I followed the same process as the tutorial linked to above. I think I've narrowed the problem down to electron-packager because the example in the tutorial no longer builds successfully on build.snapcraft.io where it did before.
My assumption is that something has changed in electron-packager which is causing the build to fail. I am able to get the build to work locally by changing the line:
cp -v -R ./webian-shell-kiosk-linux-$ARCH $SNAPCRAFT_PART_INSTALL/webian-shell-kiosk
to
cp -v -R /root/parts/webian-shell-kiosk/build/shell-kiosk-linux-$ARCH $SNAPCRAFT_PART_INSTALL/webian-shell-kiosk
but with this change the build still fails on the snapcraft build server with the same error as before.
Has there been some change to where the command:
electron-packager . --overwrite --platform=linux --arch=$ARCH --output=release-build --prune=true
will output to?
For more information, see my post on the Snapcraft forums.
Apologies if this has nothing to do with electron-packager and I'm barking up the wrong tree.
The text was updated successfully, but these errors were encountered: