{"record":{"id":"37c9242f5038dbb8","repo":"d12frosted/homebrew-emacs-plus","slug":"invalid-revision-in-path-expected-git-commit-37c924","errorCode":null,"errorMessage":"Invalid 'revision' in #{path}\nExpected: git commit hash or version-specific hash map\nGot: #{revision.inspect} (#{revision.class})\n\nExamples:\n  revision: abc123def456\nor:\n  revision:\n    \"30\": abc123\n    \"31\": def456","messagePattern":"Invalid 'revision' in #(.+?)\nExpected: git commit hash or version-specific hash map\nGot: #(.+?) \\(#(.+?)\\)\n\nExamples:\n  revision: abc123def456\nor:\n  revision:\n    \"30\": abc123\n    \"31\": def456","errorType":"validation","errorClass":"ConfigurationError","httpStatus":null,"severity":"error","filePath":"Library/BuildConfig.rb","lineNumber":335,"sourceCode":"      when String\n        unless revision.match?(/\\A[a-f0-9]+\\z/i)\n          raise ConfigurationError,\n            \"Invalid 'revision' in #{path}\\n\" \\\n            \"Expected: git commit hash (hex string)\\n\" \\\n            \"Got: #{revision.inspect}\"\n        end\n      when Hash\n        validate_version_map_keys!(revision, \"revision\", path)\n        revision.each do |ver, rev|\n          unless rev.is_a?(String) && rev.match?(/\\A[a-f0-9]+\\z/i)\n            raise ConfigurationError,\n              \"Invalid 'revision.#{ver}' in #{path}\\n\" \\\n              \"Expected: git commit hash (hex string)\\n\" \\\n              \"Got: #{rev.inspect}\"\n          end\n        end\n      else\n        raise ConfigurationError,\n          \"Invalid 'revision' in #{path}\\n\" \\\n          \"Expected: git commit hash or version-specific hash map\\n\" \\\n          \"Got: #{revision.inspect} (#{revision.class})\\n\\n\" \\\n          \"Examples:\\n\" \\\n          \"  revision: abc123def456\\n\" \\\n          \"or:\\n\" \\\n          \"  revision:\\n\" \\\n          \"    \\\"30\\\": abc123\\n\" \\\n          \"    \\\"31\\\": def456\"\n      end\n    end\n\n    # Print config contents for verbose output\n    # @param config [Hash] The configuration hash\n    # @param source [String] Path to the config file\n    # @param context [Symbol] :formula or :cask\n    # @param output [Proc] Output method (e.g., method(:puts) or Homebrew's ohai)\n    def print_config(config, source, context: :formula, output: method(:puts))","sourceCodeStart":317,"sourceCodeEnd":353,"githubUrl":"https://github.com/d12frosted/homebrew-emacs-plus/blob/01c47fe98f35ff28a37a89e1f7aafadff621f9e0/Library/BuildConfig.rb#L317-L353","documentation":"Error \"Invalid 'revision' in #{path}\nExpected: git commit hash or version-specific hash map\nGot: #{revision.inspect} (#{revision.class})\n\nExamples:\n  revision: abc123def456\nor:\n  revision:\n    \"30\": abc123\n    \"31\": def456\" thrown in d12frosted/homebrew-emacs-plus.","triggerScenarios":"Thrown at Library/BuildConfig.rb:335 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set 'revision' to a git commit hash string, e.g. 'revision: abc123def456'.","Or use a version-specific map:\n  revision:\n    \"30\": abc123\n    \"31\": def456","Remove 'revision' if you want to build the default branch head instead of pinning a commit."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01c47fe98f35ff28a37a89e1f7aafadff621f9e0","analyzedAt":"2026-08-23T16:25:45.065Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}