From c8cb7e75920f8cd395626e37e3b6142ac5287f05 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sat, 4 Apr 2026 10:30:11 -0400 Subject: [PATCH] Remove psych dependency Psych is a standard gem that is bundled with the Ruby installation and thus having a pinned version forces Bundler/RV to re-compile a new copy of something that is already present in the Ruby installation. This means extra CPU cycles spent running C compilers and extra dependencies on `-dev` packages to supply the required headers. Psych was pinned to `>= 4.0` in this commit to get consistent `YAML.safe_load` behavior in older Ruby versions used by build pipelines: https://github.com/puppetlabs/vanagon/commit/463b0fb98dc70c8ff7d4ee52d41e0068a4986b5b This `>= 4.0` requirement has been satisfied by the default gem set since the release of Ruby 3.1.0, the minimum allowed Ruby version is `>= 3.2` since OpenVoxProject/vanagon@4c4fe8a5, hence the original reason for the pin is now moot. Signed-off-by: Charlie Sharpsteen --- vanagon.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/vanagon.gemspec b/vanagon.gemspec index a9721e48..408b5468 100644 --- a/vanagon.gemspec +++ b/vanagon.gemspec @@ -29,7 +29,6 @@ Gem::Specification.new do |gem| # Utilities for `ship` and `repo` commands # - ASL v2 licensed: https://rubygems.org/gems/packaging gem.add_dependency('packaging', '~> 0.122.3') - gem.add_dependency('psych', '>= 4.0', '< 6') gem.add_dependency('ostruct', '< 0.7')