sylhare / Type-on-Strap

🎨 Simplistic, responsive jekyll based open source theme
https://sylhare.github.io/Type-on-Strap/
MIT License
813 stars 901 forks source link

Build Ruby Gem: Some jobs were not successful #366

Closed aerimforest closed 2 years ago

aerimforest commented 2 years ago

Hi, first of all, thank you for your wonderful theme. If I modify the file and push, three workflows will be executed as shown below, and the Ruby Gem build will eventually fail like in the picture.

image


When I click on the failed workflow, it says test (2.6) failed.

image


If you look at the log, there is an error. I really don't know how to fix the error.

ERROR:  Error installing type-on-strap:
    The last version of rouge (>= 3.0, < 5.0) to support your Ruby & RubyGems was 3.30.0. Try installing it with `gem install rouge -v 3.30.0` and then running the current command again
    rouge requires Ruby version >= 2.7. The current ruby version is 2.6.10.210.  

I tried gem install rouge -v 3.30.0 and updated ruby. but it's still the same.

Run gem install type-on-strap
Successfully installed public_suffix-[5](https://github.com/aerimforest/aerimforest.github.io/actions/runs/3296756741/jobs/5438153304#step:7:6).0.0
Successfully installed addressable-2.8.1
Successfully installed colorator-1.1.0
Building native extensions. This could take a while...
Successfully installed http_parser.rb-0.8.0
Building native extensions. This could take a while...
Successfully installed eventmachine-1.2.7
Successfully installed em-websocket-0.5.3
Successfully installed concurrent-ruby-1.1.10
Successfully installed i18n-1.12.0
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Building native extensions. This could take a while...
ERROR:  Error installing type-on-strap:
    The last version of rouge (>= 3.0, < 5.0) to support your Ruby & RubyGems was 3.30.0. Try installing it with `gem install rouge -v 3.30.0` and then running the current command again
    rouge requires Ruby version >= 2.7. The current ruby version is 2.[6](https://github.com/aerimforest/aerimforest.github.io/actions/runs/3296756741/jobs/5438153304#step:7:7).10.210.
Successfully installed sassc-2.4.0
Successfully installed jekyll-sass-converter-2.2.0
Successfully installed rb-fsevent-0.11.2
Successfully installed rb-inotify-0.10.1
Successfully installed listen-3.[7](https://github.com/aerimforest/aerimforest.github.io/actions/runs/3296756741/jobs/5438153304#step:7:8).1
Successfully installed jekyll-watch-2.2.1
Successfully installed kramdown-2.4.0
Successfully installed kramdown-parser-gfm-1.1.0
Successfully installed liquid-4.0.3
Successfully installed mercenary-0.4.0
Successfully installed forwardable-extended-2.6.0
Successfully installed pathutil-0.[16](https://github.com/aerimforest/aerimforest.github.io/actions/runs/3296756741/jobs/5438153304#step:7:17).2
Error: Process completed with exit code 1.
sylhare commented 2 years ago

Ah it seems Rouge is dropping support for Ruby 2.6, I don't see it in their GitHub action anymore: https://github.com/rouge-ruby/rouge

In my case I think it's Rouge 3.26.0 that is installed.

Let's remove 2.6 and add 3.1 instead.

aerimforest commented 2 years ago

@sylhare Wow the error is resolved. Thank you so much:-)