From c9a6c249486c1d538576dd933180ed48bf548a55 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Mon, 1 Jun 2026 11:32:24 -0700 Subject: [PATCH] (PA-8445) Use Artifactory as sole gem source Prior to this, our internal Artifactory mirror, which hosts Puppet Core releases, was added as a gem source, but came after the default location of rubygems.org. This commit updates the nightly gem test workflow to add Artifactory and remove rubygems.org in order to make sure that the Puppet nightly gem correctly installs the latest Facter as its dependency from Artifactory instead of the outdated last publicly-released Facter from rubygems.org. --- .github/workflows/unit_tests_with_nightly_puppet_gem.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml index 3771305..27f9012 100644 --- a/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml +++ b/.github/workflows/unit_tests_with_nightly_puppet_gem.yaml @@ -51,7 +51,9 @@ jobs: run: | ${{ matrix.extra_steps }} curl https://artifactory.delivery.puppetlabs.net/artifactory/internal_nightly__local/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location - gem install puppet.gem -N --source https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/ + gem sources --add https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/ + gem sources --remove https://rubygems.org/ + gem install puppet.gem -N - name: Prepare testing environment with bundler env: