Skip to content

Commit

Permalink
Fix indirect gem overrides
Browse files Browse the repository at this point in the history
If a gem isn't directly referenced in the core-repo's gemfile it cannot
be overridden, ensure_gem has to be used.

Fixes ManageIQ#36
  • Loading branch information
agrare authored and d-m-u committed Feb 3, 2020
1 parent f9f78ec commit 8d2d147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manageiq/cross_repo/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_bundler_d
if gem_repos.empty?
FileUtils.rm_f override_path
else
content = gem_repos.map { |gem| "override_gem \"#{gem.repo}\", :path => \"#{gem.path}\"" }.join("\n")
content = gem_repos.map { |gem| "ensure_gem \"#{gem.repo}\", :path => \"#{gem.path}\"" }.join("\n")
FileUtils.mkdir_p(bundler_d_path)

File.write(override_path, content)
Expand Down

0 comments on commit 8d2d147

Please sign in to comment.