solidusio / solidus_dev_support

A collection of tools for developing Solidus extensions.
MIT License
21 stars 27 forks source link

`solidus_dev_support`'s dependency requires Ruby >= 3 #181

Closed Naokimi closed 2 years ago

Naokimi commented 2 years ago

Ran gem install solidus_dev_support as per https://guides.solidus.io/developers/extensions/writing-extensions.html and got an error when trying to install io-event, saying it needs a Ruby version >= 3.

Is this expected behaviour (in which case it would be good to update the docs) or an issue of the installer?

Here is the whole log:

Fetching launchy-2.5.0.gem
Fetching capybara-screenshot-1.0.26.gem
Fetching codecov-0.6.0.gem
Fetching database_cleaner-1.99.0.gem
Fetching ffaker-2.20.0.gem
Fetching gem-release-2.2.2.gem
Fetching fiber-local-1.0.0.gem
Fetching console-1.14.0.gem
Fetching io-event-1.0.2.gem
Fetching timers-4.3.3.gem
Fetching async-2.0.0.gem
Fetching async-io-1.32.2.gem
Fetching async-pool-0.3.9.gem
Fetching protocol-http-0.22.5.gem
Fetching protocol-http1-0.14.2.gem
Fetching protocol-hpack-1.4.2.gem
Fetching solidus_dev_support-2.5.2.gem
Fetching protocol-http2-0.14.2.gem
Fetching async-http-0.56.5.gem
Fetching async-http-faraday-0.11.0.gem
Fetching github_changelog_generator-1.16.4.gem
Fetching rubocop-rspec-2.7.0.gem
Successfully installed launchy-2.5.0
Successfully installed capybara-screenshot-1.0.26
Successfully installed codecov-0.6.0
Successfully installed database_cleaner-1.99.0
Successfully installed ffaker-2.20.0
Successfully installed gem-release-2.2.2
Successfully installed fiber-local-1.0.0
Successfully installed console-1.14.0
ERROR:  Error installing solidus_dev_support:
        There are no versions of io-event (~> 1.0.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
        io-event requires Ruby version >= 3.0. The current ruby version is 2.7.2.137.

Environment: Windows WSL 2 (Ubuntu) Ruby installed with rbenv

EDIT: see https://github.com/solidusio/solidus_dev_support/issues/181#issuecomment-1019749529 for solution

Naokimi commented 2 years ago

problem persists even after installing a lower version of io-event gem

➜  gem install io-event
ERROR:  Error installing io-event:
        The last version of io-event (>= 0) to support your Ruby & RubyGems was 0.4.0. Try installing it with `gem install io-event -v 0.4.0`
        io-event requires Ruby version >= 3.0. The current ruby version is 2.7.2.137.
➜  gem install io-event -v 0.4.0
Fetching io-event-0.4.0.gem
Building native extensions. This could take a while...
Successfully installed io-event-0.4.0
Parsing documentation for io-event-0.4.0
Installing ri documentation for io-event-0.4.0
Done installing documentation for io-event after 0 seconds
1 gem installed
➜  gem install solidus_dev_support
ERROR:  Error installing solidus_dev_support:
        There are no versions of io-event (~> 1.0.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
        io-event requires Ruby version >= 3.0. The current ruby version is 2.7.2.137.
Naokimi commented 2 years ago

found out that it's a dependency of github_changelog_generator

➜  gem install --explain github_changelog_generator
Gems to install:
  minitest-5.15.0
  concurrent-ruby-1.1.9
  tzinfo-2.0.4
  i18n-1.8.11
  activesupport-7.0.1
  fiber-local-1.0.0
  console-1.14.0
  io-event-1.0.2
  timers-4.3.3
  async-2.0.0
  async-io-1.32.2
  async-pool-0.3.9
  protocol-http-0.22.5
  protocol-http1-0.14.2
  protocol-hpack-1.4.2
  protocol-http2-0.14.2
  async-http-0.56.5
  ruby2_keywords-0.0.5
  multipart-post-2.1.1
  faraday-rack-1.0.0
  faraday-patron-1.0.0
  faraday-net_http_persistent-1.2.0
  faraday-net_http-1.0.1
  faraday-httpclient-1.0.1
  faraday-excon-1.1.0
  faraday-em_synchrony-1.0.0
  faraday-em_http-1.0.0
  faraday-1.7.1
  async-http-faraday-0.11.0
  faraday-http-cache-2.2.0
  multi_json-1.15.0
  public_suffix-4.0.6
  addressable-2.8.0
  sawyer-0.8.2
  octokit-4.21.0
  rainbow-3.1.1
  rake-13.0.6
  github_changelog_generator-1.16.4

will try if installing a lower version solves the problem

Naokimi commented 2 years ago

[SOLVED] The final issue was with github_changelog_generator's depency async. Since the 25th of December 2021 the version 2.0.0 has a runtime dependency on io-event ~> 1.0.0.

Running gem install async -v 1.30.1 solved the issue and let me install solidus_dev_support without further problems.

Zxce3 commented 2 years ago

[SOLVED] The final issue was with github_changelog_generator's depency async. Since the 25th of December 2021 the version 2.0.0 has a runtime dependency on io-event ~> 1.0.0.

Running gem install async -v 1.30.1 solved the issue and let me install solidus_dev_support without further problems.

thanks