Files
ports/sysutils/beats91/files/patch-dev-tools_mage_settings.go
T
Saro 649f19884e sysutils/beats91: New port: Send logs, network, metrics and heartbeat to Elasticsearch or Logstash 9.1.x
Release Notes:
https://www.elastic.co/docs/release-notes/beats#beats-release-notes-9.1.10

PR:		291018
Approved by:	elastic (maintainer, implicit - inactive for more than 6 months)
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
2026-03-18 00:12:09 +03:00

21 lines
528 B
Go

--- dev-tools/mage/settings.go.orig 2026-01-07 19:28:13 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
}