Files
ports/sysutils/beats8/files/patch-dev-tools_mage_settings.go
T
Saro fae0cd1f8e sysutils/beats8: Update 8.14.3 => 8.19.12
Release Notes (42 new versions):
https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-8.15.0.html
 . . .
https://www.elastic.co/guide/en/beats/libbeat/current/release-notes-8.19.12.html

- Remove unnecessary '?' in "PKGNAMESUFFIX?=8".
- Adjust COMMENT.
- Simplify removing "./" from GO_TARGET.
- Remove unnecessary '+' in "MAKE_ENV+=".
- Fix GO_MODULE - must be "v7" instead of "v8".
- Adjust CONFLICTS.
- Use ".ifmake makesum" for generate distfiles with non-default modules too.
- Add LOCAL/vvd/elastic to MASTER_SITES for those who can't download due
  to the HTTP error "Forbidden 403".
- Replace PORTVERSION with DISTVERSION.
- Add '(' and ')' around the block that is executed in the shell.
- Refresh patches.
- Fix description in rc.d scripts.

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

21 lines
528 B
Go

--- dev-tools/mage/settings.go.orig 2025-09-15 19:57:17 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
}