{"record":{"id":"6a5fd6622edc79b1","repo":"ruby/rubygems","slug":"type-hook-location-failed-for-spec-full-nam","errorCode":null,"errorMessage":"#{type} hook#{location} failed for #{spec.full_name}","messagePattern":"#(.+?) hook#(.+?) failed for #(.+?)","errorType":"exception","errorClass":"InstallHookError","httpStatus":null,"severity":"error","filePath":"lib/bundler/source/path/installer.rb","lineNumber":47,"sourceCode":"            run_hooks(:post_build)\n          end\n\n          generate_bin unless spec.executables.empty?\n\n          run_hooks(:post_install)\n        end\n\n        private\n\n        def run_hooks(type)\n          hooks_meth = \"#{type}_hooks\"\n          return unless Gem.respond_to?(hooks_meth)\n          Gem.send(hooks_meth).each do |hook|\n            result = hook.call(self)\n            next unless result == false\n            location = \" at #{$1}\" if hook.inspect =~ /@(.*:\\d+)/\n            message = \"#{type} hook#{location} failed for #{spec.full_name}\"\n            raise InstallHookError, message\n          end\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":29,"sourceCodeEnd":54,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/source/path/installer.rb#L29-L54","documentation":"Error \"#{type} hook#{location} failed for #{spec.full_name}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/source/path/installer.rb:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}