cfw-guide / ios.cfw.guide

A complete iOS modding guide, from stock to jailbroken.
https://ios.cfw.guide/
MIT License
414 stars 114 forks source link

`yarn dev` and `yarn build` both fail #257

Open gamer191 opened 6 months ago

gamer191 commented 6 months ago

I followed the instructions in the Readme, but both yarn dev and yarn build are failing. I'm wondering if I did anything wrong?

jay@Ubuntu11:~/PycharmProjects/ios.cfw.guide$ yarn dev
yarn run v1.22.21
$ vuepress dev docs
warning an anonymous plugin or theme was detected and ignored
info Initializing VuePress and preparing data...
error error in hook onInitialized from vuepress-dynamic-pages
Error: File '/home/jay/PycharmProjects/ios.cfw.guide/docs/en_US/include/using-Cydia.md' not found.
    at _replaceIncludeByContent (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it-include/dist/markdownItInclude.js:90:17)
    at Array._includeFileParts (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it-include/dist/markdownItInclude.js:122:17)
    at Core.process (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/parser_core.js:54:13)
    at MarkdownIt.parse (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/index.js:524:13)
    at MarkdownIt.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/index.js:544:36)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-headers/dist/index.cjs:21:20)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-title/dist/index.cjs:23:20)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-frontmatter/dist/index.cjs:20:12)
    at renderPageContent (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@vuepress/core/lib/page/renderPageContent.js:14:42)
    at createPage (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@vuepress/core/lib/page/createPage.js:29:144)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
jay@Ubuntu11:~/PycharmProjects/ios.cfw.guide$ yarn build
yarn run v1.22.21
$ vuepress build docs
warning an anonymous plugin or theme was detected and ignored
info Initializing VuePress and preparing data...
error error in hook onInitialized from vuepress-dynamic-pages
Error: File '/home/jay/PycharmProjects/ios.cfw.guide/docs/en_US/include/using-Cydia.md' not found.
    at _replaceIncludeByContent (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it-include/dist/markdownItInclude.js:90:17)
    at Array._includeFileParts (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it-include/dist/markdownItInclude.js:122:17)
    at Core.process (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/parser_core.js:54:13)
    at MarkdownIt.parse (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/index.js:524:13)
    at MarkdownIt.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/markdown-it/lib/index.js:544:36)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-headers/dist/index.cjs:21:20)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-title/dist/index.cjs:23:20)
    at md.render (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@mdit-vue/plugin-frontmatter/dist/index.cjs:20:12)
    at renderPageContent (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@vuepress/core/lib/page/renderPageContent.js:14:42)
    at createPage (/home/jay/PycharmProjects/ios.cfw.guide/node_modules/@vuepress/core/lib/page/createPage.js:29:144)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
gamer191 commented 6 months ago

After running some Github actions tests (at https://github.com/gamer191/ios.cfw.guide/), it appears that it builds on MacOS, but not on Linux. The workflow was switched to MacOS in https://github.com/cfw-guide/ios.cfw.guide/commit/dbe65f38d8327477587ca83ac77b01397b91de3b, but I'm not sure why :thinking:

EDIT: after running more tests (https://github.com/gamer191/ios.cfw.guide/actions/runs/7230257035) it appears that it fails on windows for a completely different reason. Although it works on my Windows machine, so maybe that's a Github Actions issue

gamer191 commented 6 months ago

After running another test (https://github.com/gamer191/ios.cfw.guide/actions/runs/7230345594), it appears that build works on Windows and MacOS, but fails on Linux, as the log above demonstrates

ghbuild also fails on Windows, due to an unrelated issue