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 install gem on Ruby < 3.0 #1003

Open
tasercake opened this issue Dec 29, 2021 · 1 comment
Open

Unable to install gem on Ruby < 3.0 #1003

tasercake opened this issue Dec 29, 2021 · 1 comment

Comments

@tasercake
Copy link

tasercake commented Dec 29, 2021

Using ruby 2.7.4, I'm unable to install github_changelog_generator due to a dependency issue.

Reproducing

With Ruby < 3.0, install the github_changelog_generator gem:

# Ruby 2.7.4
$ gem install github_changelog_generator
ERROR:  Error installing github_changelog_generator:
	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.4.191.

Workaround

Switching to Ruby 3.0, the gem installs fine:

# Ruby 3.0.0
$ gem install github_changelog_generator

Successfully installed github_changelog_generator-1.16.4

As does installing a lower version of async first on Ruby 2.7.4:

# Ruby 2.7.4
$ gem install async -v '~> 1.29'
$ gem install github_changelog_generator

Successfully installed github_changelog_generator-1.16.4

It looks like async bumped their io-event requirement recently, which breaks compatibility with Ruby 2.x: socketry/async@d16f7fa

Perhaps the async dependency should be pinned to version 1 to maintain compatibility with Ruby 2?


Desktop

  • OS: macOS Catalina (10.15.7)
  • Browser: Chrome 96.0.4664.110
  • Ruby: 2.7.4.191 (installed using rvm)
@olleolleolle
Copy link
Collaborator

Workarounds you can do yourself include:

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

2 participants