Skip to content
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

GitHub page build failure (missing _include symlink) when specifying a source directory #7247

Closed
6 of 18 tasks
mnyrop opened this issue Sep 13, 2018 · 4 comments
Closed
6 of 18 tasks

Comments

@mnyrop
Copy link

mnyrop commented Sep 13, 2018

  • I believe this to be a bug, not a question about using Jekyll.
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I ran jekyll doctor to check my configuration
  • I read the CONTRIBUTION file at https://jekyllrb.com/docs/contributing/
  • This is a feature request.

  • I am on (or have tested on) macOS 10+
  • I am on (or have tested on) Debian/Ubuntu GNU/Linux
  • I am on (or have tested on) Fedora GNU/Linux
  • I am on (or have tested on) Arch GNU/Linux
  • I am on (or have tested on) Other GNU/Linux
  • I am on (or have tested on) Windows 10+

  • I was trying to install.
  • There is a broken Plugin API.
  • I had an error on GitHub Pages, and I have reproduced it locally.
  • I had an error on GitHub Pages, and GitHub Support said it was a Jekyll Bug.
  • I had an error on GitHub Pages and I did not test it locally.
  • I was trying to build.
  • It was another bug.

My Reproduction Steps

  • Build the jekyll site using the source directory src (works locally; builds without errors and passes tests)
  • Push to origin master to have GitHub build the site with GhPages (page build failure, symlink missing)
  • Try pushing only the compiled _site to gh-pages branch via rake task (page build failure, symlink missing)

Result:

Liquid Exception: Could not locate the included file 'banner.html' in any of 
["/home/travis/build/mnyrop/wax/_includes"]. Ensure it exists in one of those directories and,
if it is a symlink, does not point outside your site source. 
in src/about.md

(See line #672 in build Travis-CI log.)

Basically, gh-pages is not acknowledging my source directory and is looking for _includes in my jekyll root directory. (In this case, wax/_includes instead of wax/src/_includes).

Repository: https://github.com/mnyrop/wax

The Output I Wanted

Successful build on GitHub Pages.

@mnyrop
Copy link
Author

mnyrop commented Sep 17, 2018

Might be related to #7224 and #7228?

Also #6578.

@mnyrop
Copy link
Author

mnyrop commented Sep 19, 2018

Still failing on newest Jekyll release (3.8.4)

@pathawks
Copy link
Member

GitHub Pages overrides source.
https://github.com/github/pages-gem/blob/master/lib/github-pages/configuration.rb#L38-L40

This is not a Jekyll bug, but a restriction of the GitHub Pages environment.

@mnyrop
Copy link
Author

mnyrop commented Sep 24, 2018

@pathawks Thanks for clarifying

@jekyll jekyll locked and limited conversation to collaborators Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants