d12frosted/homebrew-emacs-plus · error · ConfigurationError

Invalid 'revision.#{ver}' in #{path} Expected: git commit ha

Error message

Invalid 'revision.#{ver}' in #{path}
Expected: git commit hash (hex string)
Got: #{rev.inspect}

What it means

Error "Invalid 'revision.#{ver}' in #{path} Expected: git commit hash (hex string) Got: #{rev.inspect}" thrown in d12frosted/homebrew-emacs-plus.

Source

Thrown at Library/BuildConfig.rb:328

        "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" \
          "Got: #{revision.inspect} (#{revision.class})\n\n" \
          "Examples:\n" \
          "  revision: abc123def456\n" \
          "or:\n" \
          "  revision:\n" \
          "    \"30\": abc123\n" \
          "    \"31\": def456"
      end
    end

View on GitHub (pinned to 01c47fe98f)

Solutions

  1. Set the revision for that version key to a valid git commit hash (hex characters only).
  2. Correct form: revision: "30": abc123 "31": def456
  3. Check for typos such as non-hex letters (g-z), quoting issues, or an empty value under that version key.

When it happens

Trigger: Thrown at Library/BuildConfig.rb:328 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/eda343747e954e2c. Report an issue: GitHub.