Commit

4340a709bf5ba4b2919a9993722ba5703b0999b4

ci: fix missing Ruby dependency in "documentation" job

Our "documentation" job has recently stopped working with the following
error:

  + sudo gem install --version 1.5.8 asciidoctor
  + gem install --version 1.5.8 asciidoctor
  ./ci/install-dependencies.sh: 23: gem: not found

The root cause of this is that we never explicitly install Ruby, and
consequently gem(1) isn't explicitly pulled in, either. This used to
work alright because we transitively pulled in Ruby via asciidoc. But
due to an update it seems that we stopped pulling in the transitive
dependency, and consequently we don't have gem(1) available anymore.

Fix this by explicitly installing Ruby.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt <ps@pks.im> · 2026-09-01 08:16 UTC · committed by Junio C Hamano

Browse files
1 file changed, +1 −1
modified ci/install-dependencies.sh
@@ -164,7 +164,7 @@ sparse)
164 164 libexpat-dev gettext zlib1g-dev sparse
165 165 ;;
166 166 Documentation)
167 - sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make
167 + sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make ruby
168 168
169 169 test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
170 170 sudo gem install --version 1.5.8 asciidoctor