Skip to content

Conversation

@tvpartytonight
Copy link
Contributor

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.

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.
@tvpartytonight tvpartytonight requested a review from a team as a code owner July 10, 2025 23:47
@joshcooper joshcooper merged commit 93547ff into main Jul 11, 2025
2 checks passed
@joshcooper joshcooper deleted the use-specific-multijson-for-ruby27 branch July 11, 2025 01:59
run: |
${{ matrix.extra_steps }}
curl https://nightlies.puppet.com/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location
if [[ ${{ matrix.ruby }} == "2.7" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gah, seems this code is executed on Windows too, which doesn't know what to do with bash-isms https://github.com/puppetlabs/puppetlabs-puppet_agent/actions/runs/16210067256/job/45768327368?pr=786#step:4:31

Maybe add a separate step which is conditional on the ruby version:

- name: Install multijson 1.15.0
  if ${{ startsWith(matrix.ruby, '2.7') }}
  run: gem install multi_json -v 1.15.0
- name: Install the latest nightly build of puppet${{ matrix.puppet_version }} gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants