From 59f2ce710197782f52191bf5190b8a80eaa6af10 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 7 Dec 2022 12:18:36 -0300 Subject: [PATCH] fix: filter out gems that have the same prefix than a precompiled gem E.g. do not precompile ffi-rzmq-core when 'ffi' is meant to be compiled --- lib/autoproj/ops/cache.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/autoproj/ops/cache.rb b/lib/autoproj/ops/cache.rb index 750776a5..0f67259c 100644 --- a/lib/autoproj/ops/cache.rb +++ b/lib/autoproj/ops/cache.rb @@ -166,6 +166,7 @@ def create_or_update_gems(keep_going: true, compile_force: false, compile: []) failed = [] compile.each do |gem_name, artifacts: []| Dir.glob(File.join(cache_dir, "#{gem_name}*.gem")) do |gem| + next unless /^#{gem_name}-\d/.match?(File.basename(gem)) next if gem.end_with?(platform_suffix) gem_basename = File.basename(gem, ".gem")