Skip to content

Commit d3625f9

Browse files
authored
ci: install specific gem versions in make-assets.sh (#7913)
We recently started getting these errors in CI: ``` ERROR: Error installing fpm: The last version of rchardet (~> 1.8) to support your Ruby & RubyGems was 1.8.0. Try installing it with `gem install rchardet -v 1.8.0` and then running the current command again rchardet requires Ruby version >= 3.0.0. The current ruby version is 2.7.0.0. ``` Installing specific versions of dependencies fixes it.
1 parent ef6593d commit d3625f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/make-assets.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ $(dirname -- "${0}")/fetch-and-verify-go.sh "${GO_VERSION}"
2424
sudo tar -C /usr/local -xzf go.tar.gz
2525
export PATH=/usr/local/go/bin:$PATH
2626

27-
# Install fpm, this is used in our Makefile to package Boulder as a deb.
27+
# Install fpm. This is used in our Makefile to package Boulder as a deb.
28+
# We install specific versions of some dependencies because these are the last versions
29+
# supported by the Ruby / RubyGems that ships on ubuntu-20.04, which this script runs on in CI.
30+
sudo gem install --no-document -v 1.8.0 rchardet
31+
sudo gem install --no-document -v 5.1.1 public_suffix
32+
sudo gem install --no-document -v 2.8.1 dotenv
2833
sudo gem install --no-document -v 1.14.0 fpm
2934

3035
#

0 commit comments

Comments
 (0)