GithubHelp home page GithubHelp logo

Comments (2)

storypku avatar storypku commented on May 26, 2024

Tested again on MacOS, I noticed that the site-srcs directory was mode 555 rather than 755 (site-build), which means this directory was not writable.

[bin]$ pwd
path/to/bazel-blog/bazel-out/darwin-fastbuild/bin
[bin]$ ll -lh
total 50M
drwxr-xr-x  3 story wheel   96 11 15 14:13 _sass
-r-xr-xr-x  1 story wheel  444 11 15 14:13 bootstrap-css.args
-r-xr-xr-x  1 story wheel 700K 11 15 14:13 bootstrap-css.tar
-r-xr-xr-x  1 story wheel  701 11 15 14:13 bootstrap-images.args
-r-xr-xr-x  1 story wheel 220K 11 15 14:13 bootstrap-images.tar
-r-xr-xr-x  1 story wheel  285 11 15 14:13 bootstrap-js.args
-r-xr-xr-x  1 story wheel 110K 11 15 14:13 bootstrap-js.tar
-r-xr-xr-x  1 story wheel  301 11 15 14:13 font-awesome-css.args
-r-xr-xr-x  1 story wheel  70K 11 15 14:13 font-awesome-css.tar
-r-xr-xr-x  1 story wheel  627 11 15 14:13 font-awesome-font.args
-r-xr-xr-x  1 story wheel 760K 11 15 14:13 font-awesome-font.tar
-r-xr-xr-x  1 story wheel  15K 11 15 14:13 jekyll-files.args
-r-xr-xr-x  1 story wheel  24M 11 15 14:13 jekyll-files.tar
-r-xr-xr-x  1 story wheel  463 11 15 14:13 jekyll-tree.args
-r-xr-xr-x  1 story wheel  25M 11 15 14:13 jekyll-tree.tar
-r-xr-xr-x  1 story wheel 1.2K 11 15 14:13 site
drwxr-xr-x  2 story wheel   64 11 15 14:28 site-build
dr-xr-xr-x 17 story wheel  544 11 15 14:13 site-srcs
drwxr-xr-x  4 story wheel  128 11 15 14:13 site.runfiles
-r-xr-xr-x  1 story wheel  463 11 15 14:13 site.runfiles_manifest

from bazel-blog.

storypku avatar storypku commented on May 26, 2024

This issue is caused by Jekyll versions. Maybe Jekyll < 4 is OK while I used 4.1.1 throughout my experiment.

Modified scripts/jekyll.bzl to run jekyll build with an extra --disable-disk-cache option, and it seems OK to bazel build //:site.

However, bazel run //:site still failed complaining about redcarpet:

$ jekyll build --disable-disk-cache -q -s bazel-out/darwin-fastbuild/bin/site-srcs -d bazel-out/darwin-fastbuild/bin/site-build --trace
Markdown processor: "redcarpet" is not a valid Markdown processor.
                    Available processors are: kramdown

See jekyll/jekyll#7838 (comment)

After downgrading Jekyll to 3.9.0 and gem installed redcarpet and pygments.rb, everything seems to be OK.

from bazel-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.