Skip to content

Commit

Permalink
use full path for instance_eval in eval_gemfile (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Feb 12, 2024
1 parent 9a812d9 commit ca1d05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/multilock/ext/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def eval_gemfile(gemfile, contents = nil, &block)
if block
instance_eval(&block)
else
instance_eval(contents.dup.tap { |x| x.untaint if RUBY_VERSION < "2.7" }, gemfile.to_s, 1)
instance_eval(contents.dup.tap { |x| x.untaint if RUBY_VERSION < "2.7" }, @gemfile.to_s, 1)
end
rescue Exception => e # rubocop:disable Lint/RescueException
message = "There was an error " \
Expand Down

0 comments on commit ca1d05c

Please sign in to comment.