{"record":{"id":"b1deb8d7dda53903","repo":"ruby/rubygems","slug":"10","errorCode":"10","errorMessage":"Could not locate Gemfile","messagePattern":"Could not locate Gemfile","errorType":"exception","errorClass":"Bundler::GemfileNotFound","httpStatus":null,"severity":"error","filePath":"lib/bundler/shared_helpers.rb","lineNumber":15,"sourceCode":"# frozen_string_literal: true\n\nrequire_relative \"version\"\nrequire_relative \"rubygems_integration\"\nrequire_relative \"current_ruby\"\n\nmodule Bundler\n  autoload :WINDOWS, File.expand_path(\"constants\", __dir__)\n  autoload :FREEBSD, File.expand_path(\"constants\", __dir__)\n  autoload :NULL, File.expand_path(\"constants\", __dir__)\n\n  module SharedHelpers\n    def root\n      gemfile = find_gemfile\n      raise GemfileNotFound, \"Could not locate Gemfile\" unless gemfile\n      Pathname.new(gemfile).expand_path.parent\n    end\n\n    def default_gemfile\n      gemfile = find_gemfile\n      raise GemfileNotFound, \"Could not locate Gemfile\" unless gemfile\n      Pathname.new(gemfile).expand_path\n    end\n\n    def default_lockfile\n      given = ENV[\"BUNDLE_LOCKFILE\"]\n      return Pathname.new(given) if given && !given.empty?\n\n      gemfile = default_gemfile\n\n      case gemfile.basename.to_s\n      when \"gems.rb\" then Pathname.new(gemfile.sub(/.rb$/, \".locked\"))\n      else Pathname.new(\"#{gemfile}.lock\")","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/shared_helpers.rb#L1-L33","documentation":"Error \"Could not locate Gemfile\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/shared_helpers.rb:15 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"}