Skip to content

Commit

Permalink
fix: filter out gems that have the same prefix than a precompiled gem
Browse files Browse the repository at this point in the history
E.g. do not precompile ffi-rzmq-core when 'ffi' is meant to be
compiled
  • Loading branch information
doudou committed Jan 14, 2024
1 parent e10dd92 commit ae0beed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/autoproj/ops/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ae0beed

Please sign in to comment.