Update GithubPages to use Ruby 3.x and latest jekyll
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- jekyll, ruby
- Lĩnh vực
- build-system
Hướng nghiên cứu
Tái hiện lỗi với một Gemfile chứa github-pages, sau đó chạy bundle install và bundle exec jekyll serve như mô tả. Bắt đầu bằng cách xem xét các phiên bản dependency và vị trí trong Jekyll stack được hiển thị trong crash log; hoàn tất khi site mẫu build và serve thành công trên Ruby 3.0.2 mà không gặp TypeError này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (run
bundle update github-pages)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
Hi there,
I'm trying to build my website locally and getting ruby crash after running bundle exec jekyll serve:
crash log
Configuration file: /home/username/git/sCHEMe-website/_config.yml
Source: /home/username/git/sCHEMe-website
Destination: /home/username/git/sCHEMe-website/_site
Incremental build: disabled. Enable with --incremental
Generating...
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
done in 0.658 seconds.
jekyll 3.9.0 | Error: no implicit conversion of Hash into Integer
/usr/share/gems/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read': no implicit conversion of Hash into Integer (TypeError)
from /usr/share/gems/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/utils/platforms.rb:75:in `proc_version'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/utils/platforms.rb:40:in `bash_on_windows?'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:77:in `watch'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:43:in `process'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `block in start'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `each'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `start'
from /usr/share/gems/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
from /usr/share/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /usr/share/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /usr/share/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /usr/share/gems/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /usr/share/gems/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /usr/share/gems/gems/jekyll-3.9.0/exe/jekyll:15:in `<top (required)>'
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23:in `<top (required)>'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli/exec.rb:63:in `load'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli/exec.rb:28:in `run'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli.rb:474:in `exec'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli.rb:30:in `dispatch'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/cli.rb:24:in `start'
from /usr/share/gems/gems/bundler-2.2.22/libexec/bundle:49:in `block in <top (required)>'
from /usr/share/gems/gems/bundler-2.2.22/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
from /usr/share/gems/gems/bundler-2.2.22/libexec/bundle:37:in `<top (required)>'
from /usr/bin/bundle:23:in `load'
from /usr/bin/bundle:23:in `<main>'
I'm using ruby 3.0.2
$ ruby --version
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
steps to reproduce are:
- clone any github-jekyll website (e.g. that one I'm trying to build: https://github.com/neonknights/sCHEMe-website)
- create Gemfile (as there is no one yet)
echo -en "source 'https://rubygems.org'\ngem 'github-pages', group: :jekyll_plugins" >> Gemfile
- rund bundler
bundle install
- serve site
bundle exec jekyll serve
- will see crash
What did you expect to happen?
site should be served
What happened instead?
crash I mentioned above
Additional information
as far as I understand this happens because of ruby's backword compatibility as iirc github uses ruby 2.x but the currently used version is 3.x .
If so, is it possible to update that version?
- Ngôn ngữ chính
- Ruby
- Star
- 1.9k
- Fork
- 361
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/pages-gem
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Error when building docker imageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
-
index.htmlĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Tất cả issue của github/pages-gem
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
misa.G should not be definedĐang mởdata error
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
riscv/riscv-unified-db#2648 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P2 testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày