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

Unable to update to jekyll 4.3.4 #69

Open
patrickuhlmann opened this issue Oct 20, 2024 · 0 comments
Open

Unable to update to jekyll 4.3.4 #69

patrickuhlmann opened this issue Oct 20, 2024 · 0 comments

Comments

@patrickuhlmann
Copy link
Contributor

patrickuhlmann commented Oct 20, 2024

The problem is the build action: https://github.com/jerryjvl/jekyll-build-action/tree/master which by the way is only executing the image https://hub.docker.com/layers/jekyll/builder/4/images/sha256-439d7a3d94dd0547f47de5ff03fa910ba93c45dd748bc2b0cde6446d1c322a80?context=explore which is based on Ruby 3.1 that is not suported anymore.

This leads to the error message

       Jekyll Feed: Generating feed for posts
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/main.scss':
                    end of file reached
/usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/varint.rb:20:in `readbyte': end of file reached (EOFError)
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/varint.rb:20:in `block in read'
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/varint.rb:19:in `loop'
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/varint.rb:19:in `read'
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/connection.rb:38:in `block (2 levels) in listen'
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/connection.rb:37:in `loop'
	from /usr/gem/gems/sass-embedded-1.80.3/lib/sass/compiler/connection.rb:37:in `block in listen'

To run the build the same way as the github action (and encounter the error message), execute:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app jekyll/builder:latest jekyll build --trace

We should find another builder image or just use the default ruby image and execute the build similar to:

docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:3.2 sh -c "bundle config set --local path 'vendor/bundle' && bundle install && bundle exec jekyll build --trace"
patrickuhlmann added a commit that referenced this issue Oct 20, 2024
see issue #69. Ruby 3.2 is required but the used github action uses Ruby 3.1
patrickuhlmann added a commit that referenced this issue Oct 21, 2024
see issue #69. Ruby 3.2 is required but the used github action uses Ruby 3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant