d12frosted/homebrew-emacs-plus · error · ConfigurationError
Invalid 'revision' in #{path} Expected: git commit hash (hex
Error message
Invalid 'revision' in #{path}
Expected: git commit hash (hex string)
Got: #{revision.inspect} What it means
Error "Invalid 'revision' in #{path} Expected: git commit hash (hex string) Got: #{revision.inspect}" thrown in d12frosted/homebrew-emacs-plus.
Source
Thrown at Library/BuildConfig.rb:319
"Got: #{entry.inspect} (#{entry.class})"
end
end
end
def validate_patch_spec!(spec, path, key:)
return if spec.is_a?(Hash) && spec["url"] && spec["sha256"]
raise ConfigurationError,
"Invalid '#{key}' in #{path}\n" \
"External and local patches require both 'url' and 'sha256'.\n" \
"Got: #{spec.inspect}"
end
def validate_revision!(revision, path)
case revision
when String
unless revision.match?(/\A[a-f0-9]+\z/i)
raise ConfigurationError,
"Invalid 'revision' in #{path}\n" \
"Expected: git commit hash (hex string)\n" \
"Got: #{revision.inspect}"
end
when Hash
validate_version_map_keys!(revision, "revision", path)
revision.each do |ver, rev|
unless rev.is_a?(String) && rev.match?(/\A[a-f0-9]+\z/i)
raise ConfigurationError,
"Invalid 'revision.#{ver}' in #{path}\n" \
"Expected: git commit hash (hex string)\n" \
"Got: #{rev.inspect}"
end
end
else
raise ConfigurationError,
"Invalid 'revision' in #{path}\n" \
"Expected: git commit hash or version-specific hash map\n" \View on GitHub (pinned to 01c47fe98f)
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.
When it happens
Trigger: Thrown at Library/BuildConfig.rb:319 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of d12frosted/homebrew-emacs-plus@01c47fe98f (2026-08-23).
Data as JSON: /api/errors/6d46fcb9f6cd0403.
Report an issue: GitHub.