[github-desktop] update PKGBUILD to workaround missing submodules - #22
Merged
Conversation
Contributor
Author
Contributor
Author
|
Found the root cause - that check in the |
Owner
|
Hey @shiftkey thanks a lot for this! It saved me a lot of time trying to track down what was happening. I've taken your fix and reworked it a little bit to be closer to Arch packaging guidelines, but the gist of the fix is the same. Ideally this would get worked out even further so all the node modules were fetched in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Spotted this comment over in the AUR feed:
👋 GitHub Desktop Linux maintainer here. I was working previously with
immackayon this package, and I think I know what's happening here. The tooling has a post-install script that ensures it has submodules on disk, but we wrapped that in an online check to support Flatpak, which was recently enabled:https://github.com/shiftkey/desktop/blob/c04d1aeb46aa87953531aa83ce96d1c120281b21/script/post-install.ts#L56-L66
Where
isOffline()is looking for anOFFLINE=1environment variable:https://github.com/shiftkey/desktop/blob/c04d1aeb46aa87953531aa83ce96d1c120281b21/script/post-install.ts#L15-L18
But that's been in place with the
2.9.0-linux4build you have working, so perhaps something's changed upstream of me that I didn't expect.Anyway, the workaround for this is to ensure the submodules are created before doing
yarn build:prod. I thoughtDLAGENTSwas the right place to add--recurse-submodulesbut I don't see that working when I tested it on immackay/github-desktop-aur#16, and had to fall back to this approach.I've bumped the package release to
2.9.2-linux1to confirm this is resolved, but I've verified it over in theimmackay/github-desktop-aurrepo (which runs the changes throughmakepkg), but I'm also surprised that this isn't requiring Node 14 or later for building. But I guess we'll see how CI goes...