{"record":{"id":"eda343747e954e2c","repo":"d12frosted/homebrew-emacs-plus","slug":"invalid-revision-ver-in-path-expected-git","errorCode":null,"errorMessage":"Invalid 'revision.#{ver}' in #{path}\nExpected: git commit hash (hex string)\nGot: #{rev.inspect}","messagePattern":"Invalid 'revision\\.#(.+?)' in #(.+?)\nExpected: git commit hash \\(hex string\\)\nGot: #(.+?)","errorType":"validation","errorClass":"ConfigurationError","httpStatus":null,"severity":"error","filePath":"Library/BuildConfig.rb","lineNumber":328,"sourceCode":"        \"Invalid '#{key}' in #{path}\\n\" \\\n        \"External and local patches require both 'url' and 'sha256'.\\n\" \\\n        \"Got: #{spec.inspect}\"\n    end\n\n    def validate_revision!(revision, path)\n      case revision\n      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","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/d12frosted/homebrew-emacs-plus/blob/01c47fe98f35ff28a37a89e1f7aafadff621f9e0/Library/BuildConfig.rb#L310-L346","documentation":"Error \"Invalid 'revision.#{ver}' in #{path}\nExpected: git commit hash (hex string)\nGot: #{rev.inspect}\" thrown in d12frosted/homebrew-emacs-plus.","triggerScenarios":"Thrown at Library/BuildConfig.rb:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the revision for that version key to a valid git commit hash (hex characters only).","Correct form:\n  revision:\n    \"30\": abc123\n    \"31\": def456","Check for typos such as non-hex letters (g-z), quoting issues, or an empty value under that version key."],"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"}