about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-04 23:06:19 +0200
committerGitHub <noreply@github.com>2021-05-04 23:06:19 +0200
commitd95128c99dc65b8f5ffc352e5eb4c2a87b332c5a (patch)
tree29915d943cc57de2b2b9616589b53e4de433d43e
parent3639862dee7e47cfd4f11430871aae3f3f71821f (diff)
Revert default Ruby version to 2.7.2 (#16154)
Ruby 2.7.3 introduced a new bug with Resolv::DNS, which we heavily use within
Mastodon: https://bugs.ruby-lang.org/issues/17781

Ruby 2.7.3 also included security fixes for two CVEs, but those do not seem
to apply to Mastodon:
https://github.com/tootsuite/mastodon/pull/16004#issuecomment-815125025
-rw-r--r--.ruby-version2
-rw-r--r--Dockerfile2
2 files changed, 2 insertions, 2 deletions
diff --git a/.ruby-version b/.ruby-version
index 2c9b4ef42..37c2961c2 100644
--- a/.ruby-version
+++ b/.ruby-version
@@ -1 +1 @@
-2.7.3
+2.7.2
diff --git a/Dockerfile b/Dockerfile
index ee0fc6e69..962e5a8c9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,7 +26,7 @@ RUN ARCH= && \
 	mv node-v$NODE_VER-linux-$ARCH /opt/node
 
 # Install Ruby
-ENV RUBY_VER="2.7.3"
+ENV RUBY_VER="2.7.2"
 RUN apt-get update && \
   apt-get install -y --no-install-recommends build-essential \
     bison libyaml-dev libgdbm-dev libreadline-dev libjemalloc-dev \