Ruby version file not working

71 views
Skip to first unread message

José Antonio Sánchez Ortiz

unread,
Mar 29, 2022, 9:49:59 AM3/29/22
to Google App Engine
Hi

We are running a project in an App Engine from several years ago. We are using flexible ruby. We have a .ruby-version file in our application directory, with version 2.6.3, but all the deployments we have tried today are ignoring the .ruby-version file, and they are installing the 2.7.5 ruby version, which fails as we have a dependencies problem. In the app.yaml we have:
  env: flex
  runtime: ruby

We have tested with runtime: ruby26, but always is using ruby 2.7.5, no matters which value we are using in runtime: ruby and in .ruby-version file

Thanks in advance

José Antonio Sánchez Ortiz

George (Cloud Platform Support)

unread,
Mar 29, 2022, 11:48:48 AM3/29/22
to Google App Engine
Hello, 

You are right, the Ruby runtime uses version 2.7.5. Source code is available on GitHub. Related details are to be found in the Overview of the "The Ruby Runtime" documentation page.  

If you need to use a certain version of a programming language, you may consider creating a custom runtime, as documented on the "App Engine custom runtimes documentation" page

José Antonio Sánchez Ortiz

unread,
Mar 29, 2022, 3:26:59 PM3/29/22
to google-a...@googlegroups.com
We have a .ruby-version file in our application directory, which contains 2.6.8, as stated in the Overview of the "The Ruby Runtime" documentation page. I have seen in Source code available on GitHub, that now ruby defaults to 2.7.5. But the question is why our .ruby-version file is not taken into account? Documentation says "You can specify which version of the Ruby interpreter to use by providing it as the contents of a .ruby-version file in your application directory"

Thank you in advance

José Antonio Sanchez Ortiz

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/5799a8ac-f29f-4a90-a433-a76d911b8e02n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages