-
Notifications
You must be signed in to change notification settings - Fork 680
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
build: move Electron releases fetch to Forge generateAssets hook #1316
Conversation
This has also broken the Electron Fiddle package that I maintain for NixOS. All NixOS packages are built in a sandbox with no external network access (except fixed-output derivations that check a hash of their output, for downloading sources). |
Sorry about that @andersk. Would gracefully failing if the fetch fails and allowing the build to continue work for you? That's what happens with |
Yeah that sounds good; the release data will be re-fetched at runtime right? An alternate option might be to skip the fetches if the |
It will be, although I'm not sure how the UI will react if it's started up with an empty I'm curious, though, how does the credits page in settings look in the NixOS packaged version? That file is exclusively fetched at build-time, so if that fails due to no network I'd imagine the credits page is just empty. Doing a cursory look at the |
Yeah, it’s empty. (Maybe we could fallback with a link to https://github.com/electron/fiddle/graphs/contributors if there’s no pre-fetched data?)
Certainly an option, though it will complicate maintenance, meaning less frequent updates. |
Thanks for the screenshots! I've tested building I've put up a PR (#1351) to ensure it doesn't clobber any existing
There's a lot changing in this repo at the moment as I'm landing a lot of refactors and fixes, leading to more releases at the moment. After another few releases the release cadence will likely slow down significantly as otherwise this repo doesn't get frequent changes. So, v0.32.6 will be released this week (short of any hiccups) which will include gracefully handling network failure at build time. With that version, I'd recommend floating a patch to populate Thanks for bringing it to our attention, and for maintaining the NixOS package. 👍 |
Pull
releases.json
ingenerateAssets
so that it is always the latest and there are no more generated PRs.Minor drawback is that builds will no longer be fully reproducible since
releases.json
will be pulled at the time you do the build and may be different than your last build.