mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
640ab1ceab
This commit changes the build hash to be the string "Unknown" when for some reason this build hash is not available. This aligns the value with the value we use when the hash is not available from the jar manifest. This situation can occur when running tests from a worktree which is not currently handled correctly by JGit, the upstream dependency that is used to acquire the hash. This causes problems when running tests locally because the warning header pattern expects a hash or the string "Unknown". While the warning header pattern be changed to allow "N/A" as well, it seemed more sensible to align the value here with the value when the hash is not available from the jar manifest. Relates #23421