GoogleCloudPlatform / appengine-ruby

Optional integration library for the Ruby runtime for Google App Engine
Apache License 2.0
53 stars 21 forks source link

Ruby 2.5 Support #14

Closed askl56 closed 6 years ago

askl56 commented 6 years ago

When trying to install with Ruby 2.5:

Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
google-protobuf-3.5.1-universal-darwin requires ruby version < 2.5, which is incompatible with the current version, ruby 2.5.0p0
dazuma commented 6 years ago

Two of the dependencies (protobuf and grpc) are not yet Ruby 2.5 compatible. We're working with those teams to get the gems updated. (See https://github.com/grpc/grpc/issues/13908). I expect an update to be released within a week.

askl56 commented 6 years ago

@dazuma is there a short term fix, or should I use another platform?

dazuma commented 6 years ago

If you're using the gem for the appengine:exec task, you can most likely switch back to 2.4.3 to run that task temporarily (using rvm, rbenv, or your favorite version manager). The Ruby version you use to run Rake does not have to be the same as the Ruby you're running in the production deployment.

If you're using the gem in order to bring in the Stackdriver (monitoring, error reporting, diagnostics) tools, then I don't know of a really good workaround. It is certainly possible to pull in the HEAD protobuf and grpc gems from github temporarily until the released versions come out, if you're willing to risk running unreleased code. But as those are core libraries, that's not a step I can fully recommend in good conscience.

dazuma commented 6 years ago

The Ruby 2.5 fixes went out a while ago. Forgot to close this, sorry.