25b420b923
Release Notes: https://www.elastic.co/docs/release-notes/beats#beats-release-notes-9.3.1 PR: 293759 Approved by: elastic (maintainer, implicit - inactive for more than 6 months) Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
21 lines
528 B
Go
21 lines
528 B
Go
--- dev-tools/mage/settings.go.orig 2026-02-23 21:59:26 UTC
|
|
+++ dev-tools/mage/settings.go
|
|
@@ -31,7 +31,6 @@ import (
|
|
"sync"
|
|
"time"
|
|
|
|
- "github.com/magefile/mage/sh"
|
|
"golang.org/x/text/cases"
|
|
"golang.org/x/text/language"
|
|
"gopkg.in/yaml.v3"
|
|
@@ -282,7 +281,8 @@ func CommitHash() (string, error) {
|
|
func CommitHash() (string, error) {
|
|
var err error
|
|
commitHashOnce.Do(func() {
|
|
- commitHash, err = sh.Output("git", "rev-parse", "HEAD")
|
|
+ err = nil
|
|
+ commitHash = "%%BEATSVERSION%%"
|
|
})
|
|
return commitHash, err
|
|
}
|