diff --git a/lib/bundler/multilock/ext/dsl.rb b/lib/bundler/multilock/ext/dsl.rb index aea4bb1..0235cf2 100644 --- a/lib/bundler/multilock/ext/dsl.rb +++ b/lib/bundler/multilock/ext/dsl.rb @@ -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 " \