From 84112c78c1f70e5f115ea777f0e878f59e1074d0 Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Thu, 2 Jul 2026 05:49:05 +0000 Subject: [PATCH] ci: pin fog-json to resolve gem conflict Vagrant 2.4.x bundles an embedded Ruby 3.3.0 runtime that loads the default specification json-2.7.2 during initialization. When installing vagrant-libvirt, RubyGems resolves the newly released fog-json 1.4.0, which requires json (~> 2.19). Because json-2.7.2 is already active in memory when Vagrant starts up, RubyGems raises a Gem::ConflictError. To avoid this conflict, pin fog-json to version 1.2.0 before installing vagrant-libvirt. Since CI caches /root/.vagrant.d across runs, also uninstall fog-json first to remove any conflicting version left in cache by a previous job. Assisted-by: Antigravity Signed-off-by: Samuel Karp --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfed135a83a8c..75e300c5987c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -662,6 +662,8 @@ jobs: sudo systemctl enable --now libvirtd sudo apt-get build-dep -y ruby-libvirt sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev + sudo env VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin uninstall fog-json || true + sudo env VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install fog-json --plugin-version 1.2.0 sudo env VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-libvirt - name: Boot VM run: |