Skip to content

Commit 131e281

Browse files
Use multi_json 1.15.0 only for ruby 2.7
An update to multi_json 1.16.0 specified ruby > 3.2; this started failing on ubuntu vms, probably a bug with the "only install gem dependencies that satisfy the currently running ruby" in ruby < 3.x. This change forces 1.15.0 to be installed first, which ruby will then use for the installation of puppet itself.
1 parent 31a26cd commit 131e281

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
run: |
4949
${{ matrix.extra_steps }}
5050
curl https://nightlies.puppet.com/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location
51+
if [[ ${{ matrix.ruby }} == "2.7" ]]; then
52+
gem install multi_json -v 1.15.0
53+
fi
5154
gem install puppet.gem -N
5255
5356
- name: Prepare testing environment with bundler

0 commit comments

Comments
 (0)