{"record":{"id":"6d46fcb9f6cd0403","repo":"d12frosted/homebrew-emacs-plus","slug":"invalid-revision-in-path-expected-git-commit","errorCode":null,"errorMessage":"Invalid 'revision' in #{path}\nExpected: git commit hash (hex string)\nGot: #{revision.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":319,"sourceCode":"            \"Got: #{entry.inspect} (#{entry.class})\"\n        end\n      end\n    end\n\n    def validate_patch_spec!(spec, path, key:)\n      return if spec.is_a?(Hash) && spec[\"url\"] && spec[\"sha256\"]\n\n      raise ConfigurationError,\n        \"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\" \\","sourceCodeStart":301,"sourceCodeEnd":337,"githubUrl":"https://github.com/d12frosted/homebrew-emacs-plus/blob/01c47fe98f35ff28a37a89e1f7aafadff621f9e0/Library/BuildConfig.rb#L301-L337","documentation":"Error \"Invalid 'revision' in #{path}\nExpected: git commit hash (hex string)\nGot: #{revision.inspect}\" thrown in d12frosted/homebrew-emacs-plus.","triggerScenarios":"Thrown at Library/BuildConfig.rb:319 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set 'revision' to a valid git commit hash containing only hex characters (0-9, a-f).","Get the hash with 'git rev-parse HEAD' in the target repository, e.g. 'revision: abc123def456'.","Remove 'revision' to build from the default branch head."],"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"}