ERROR: CMake is required to build Rugged

AI-generated summary

The discourse-code-review plugin’s latest release (2.5.0beta1) throws an error when trying to upgrade due to a missing dependency. The error message indicates that CMake is required to build Rugged. hellekin suggests using CMake to build extensions in a separate Docker layer to avoid including it in the final image. Falco provides a temporary solution, stating that rebuilding from the console is necessary and works for the updated plugin.

The latest release 2.5.0beta1 gives an error when trying to upgrade all (from the admin interface) with the discourse-code-review plugin:

gem install rugged -v 0.28.4.1 -i /var/www/discourse/plugins/discourse-code-review/gems/2.6.5 --no-document --ignore-dependencies --no-user-install
ERROR:  Error installing rugged:
	ERROR: Failed to build gem native extension.

    current directory: /var/www/discourse/plugins/discourse-code-review/gems/2.6.5/gems/rugged-0.28.4.1/ext/rugged
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200228-3888-511nfm.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... no
ERROR: CMake is required to build Rugged.

I guess CMake can be used to build the extensions in a separate Docker layer so it does not remain part of the final image…
In the current state, I guess removing the faulty plugin might be a solution, unless rebuilding from the console works (which I’m testing…)

Rebuilding from console works and is needed for the updated discourse-code-review plugin.