We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d263687 commit ff66049Copy full SHA for ff66049
rakelib/packaging.rake
@@ -27,7 +27,8 @@ def npm_pkg_rubies_cache_key(pkg)
27
return nil unless build_command
28
require "open3"
29
cmd = build_command + ["--print-ruby-cache-key"]
30
- stdout, status = Open3.capture2(*cmd)
+ chdir = pkg[:gemfile] ? File.dirname(pkg[:gemfile]) : Dir.pwd
31
+ stdout, status = Open3.capture2(*cmd, chdir: chdir)
32
unless status.success?
33
raise "Command failed with status (#{status.exitstatus}): #{cmd.join ""}"
34
end
0 commit comments