guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.92k stars 245 forks source link

Failing bundle install on ruby3.0.0.p0 #528

Closed ghost closed 3 years ago

ghost commented 3 years ago

I've got a CI/CD pipeline that runs on the docker image ruby:latest. I started getting this error today:

$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching https://github.com/jekyll/jekyll.git
listen-3.2.1 requires ruby version >= 2.2.7, ~> 2.2, which is incompatible with
the current version, ruby 3.0.0p0
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1

It says it needs version greater than 2.2, but for some reason it doesn't think 3.0 is?

ColinDKelley commented 3 years ago

Yes, that's because '~> 2.2' is the Sem-Ver notation that is equivalent to '>= 2.2', '< 3'. (The Sem-Ver convention is that major version number changes are breaking. But Ruby has never really followed Sem-Ver.)

This is fixed in newer versions of listen where the required_ruby_version is now is simply '>= 2.2.7.