ruby/rubygems · error · InstallHookError
#{type} hook#{location} failed for #{spec.full_name}
Error message
#{type} hook#{location} failed for #{spec.full_name} What it means
Error "#{type} hook#{location} failed for #{spec.full_name}" thrown in ruby/rubygems.
Source
Thrown at lib/bundler/source/path/installer.rb:47
run_hooks(:post_build)
end
generate_bin unless spec.executables.empty?
run_hooks(:post_install)
end
private
def run_hooks(type)
hooks_meth = "#{type}_hooks"
return unless Gem.respond_to?(hooks_meth)
Gem.send(hooks_meth).each do |hook|
result = hook.call(self)
next unless result == false
location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
message = "#{type} hook#{location} failed for #{spec.full_name}"
raise InstallHookError, message
end
end
end
end
end
end
View on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/bundler/source/path/installer.rb:47 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/6a5fd6622edc79b1.
Report an issue: GitHub.