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
Add webrick as a dependency #8524
Conversation
CI fails on JRuby 9.2.11.1 due to the following error:
It appears this is due to a bug in JRuby, which was fixed in 9.2.12.0: jruby/jruby@f7e110b I've updated CI to use a more recent JRuby and it now passes. |
I also added Ruby 3.0 to CI. Some tests were failing because keyword arguments were not separated in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the quick fix @argilo 🙏🏻
until jekyll/jekyll#8524 is merged
@jekyll: merge +fix |
Clayton Smith: Add webrick as a dependency (#8524) Merge pull request 8524
jekyllbot: Update history to reflect merge of jekyll#8524 [ci skip]
jekyllbot: Update history to reflect merge of jekyll#8524 [ci skip]
jekyllbot: Update history to reflect merge of jekyll#8524 [ci skip]
Can we please get a patch release of Jekyll 4 with this fix? |
Ruby 3 does not bundle webrick anymore. This was fixed for jeckyll in jekyll/jekyll#8524 but that is not released yet and the github-pages gem depends on the old jekyll 3.9.0 anyhow. So for now we need to add webrick to the dependencies ourselves.
I was banging my head against this problem yesterday. This should be merged by now, if Jekyll releases are to be kept compatible with the latest ruby releases. |
* Add the WEBrick gem to the docs app Since WEBrick is no longer bundled with Ruby in 3.0, and Jekyll depends on WEBrick, the webrick gem needs to be added as a dependency to the docs application in order to run `bundle exec jekyll serve` with Ruby 3.0+. WEBrick has been added to a dependency of Jekyll on main in jekyll/jekyll#8524, but the change hasn't yet made it into a release. * Update docs/Gemfile.lock Co-authored-by: Joel Hawksley <joelhawksley@github.com>
Just in case someone missed it, this change has finally (after almost 2 years!) been included in a release: https://github.com/jekyll/jekyll/releases/tag/v4.3.0 |
Remove local fix for the now-released jekyll/jekyll#8524
how do you add webrick as a gem dependency on a mac using docker? Am I missing something? I'm not sure my gemfile is getting pulled over. I run my docker container like so: Where it just pulls the /docs files in but I cant tell where it would pull in a ./root gemfile into the container. Any help is appreciated, thanks in advance.
Also should we note that the /pages docker container should match the actual pages deps. |
### What changes were proposed in this pull request? As [promised here][1], this change loosens our Ruby dependency specification so that Bundler can update transitive dependencies more easily. Other changes included: - Remove the direct dependency on webrick, because Jekyll [fixed the problem][2] that caused us to add it in the first place. - Add explanatory comments to parts of the document generation process that are not obvious. [1]: #44628 (comment) [2]: jekyll/jekyll#8524 We can still build our docs using Ruby 2.7, but we should push devs to install Ruby 3 since Ruby 2 is [EOL][3] and we are unable to upgrade some of our doc dependencies until we're running Ruby 3. [3]: https://www.ruby-lang.org/en/news/2022/04/12/ruby-2-7-6-released/ ### Why are the changes needed? Make the document building process more robust to future updates coming from the Ruby ecosystem. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I built and reviewed the docs on both Ruby 2.7.8 and Ruby 3.3.0 using the following command: ```sh SKIP_SCALADOC=1 SKIP_PYTHONDOC=1 SKIP_RDOC=1 bundle exec jekyll build ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44667 from nchammas/SPARK-46658-ruby-deps. Authored-by: Nicholas Chammas <nicholas.chammas@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
This is a 🐛 bug fix.
Summary
As of Ruby 3.0, WEBrick is no longer bundled with Ruby, so it needs to be listed as a dependency of Jekyll.
Context
Fixes #8523