]> cat aescling's git repositories - mastodon.git/commitdiff
Revert default Ruby version to 2.7.2 (#16154)
authorClaire <claire.github-309c@sitedethib.com>
Tue, 4 May 2021 21:06:19 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 21:06:19 +0000 (23:06 +0200)
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

.ruby-version
Dockerfile

index 2c9b4ef42ecbc54d7c946c9ad26424b89d1f792d..37c2961c2430f357166156e7ddf1c590eb8d4ce1 100644 (file)
@@ -1 +1 @@
-2.7.3
+2.7.2
index ee0fc6e69189bbd810b674287e19605b84d7f28a..962e5a8c9b26ed12a8f7054e9b8272d41c54f3f1 100644 (file)
@@ -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 \