{"record":{"id":"2d1507c3c211facb","repo":"ruby/rubygems","slug":"42","errorCode":"42","errorMessage":"There was an error while trying to #{action} `#{@path}`. File system is read-only.","messagePattern":"There was an error while trying to #(.+?) `#(.+?)`\\. File system is read-only\\.","errorType":"exception","errorClass":"Bundler::ReadOnlyFileSystemError","httpStatus":null,"severity":"error","filePath":"lib/bundler/shared_helpers.rb","lineNumber":123,"sourceCode":"    def filesystem_access(path, action = :write, &block)\n      yield(path.dup)\n    rescue Errno::EACCES => e\n      path_basename = File.basename(path.to_s)\n      raise unless e.message.include?(path_basename) || action == :create\n\n      raise PermissionError.new(path, action)\n    rescue Errno::EAGAIN\n      raise TemporaryResourceError.new(path, action)\n    rescue Errno::EPROTO\n      raise VirtualProtocolError.new\n    rescue Errno::ENOSPC\n      raise NoSpaceOnDeviceError.new(path, action)\n    rescue Errno::ENOTSUP\n      raise OperationNotSupportedError.new(path, action)\n    rescue Errno::EPERM\n      raise OperationNotPermittedError.new(path, action)\n    rescue Errno::EROFS\n      raise ReadOnlyFileSystemError.new(path, action)\n    rescue Errno::EEXIST, Errno::ENOENT\n      raise\n    rescue SystemCallError => e\n      raise GenericSystemCallError.new(e, \"There was an error #{[:create, :write].include?(action) ? \"creating\" : \"accessing\"} `#{path}`.\")\n    end\n\n    def feature_deprecated!(message)\n      return unless prints_major_deprecations?\n\n      Bundler.ui.warn(\"[DEPRECATED] #{message}\")\n    end\n\n    def feature_removed!(message)\n      require_relative \"errors\"\n      raise RemovedError, \"[REMOVED] #{message}\"\n    end\n\n    def print_major_deprecations!","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/shared_helpers.rb#L105-L141","documentation":"Error \"There was an error while trying to #{action} `#{@path}`. File system is read-only.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/shared_helpers.rb:123 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"}