Files
ports/sysutils/beats93/files/patch-dev-tools_mage_settings.go
T
Saro 25b420b923 sysutils/beats93: New port: Send logs, network, metrics and heartbeat to Elasticsearch or Logstash 9.3.x
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>
2026-03-18 00:12:11 +03:00

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
}