freebsd-ports/sysutils/beats8/files/patch-dev-tools_mage_settings.go
Juraj Lutter c7e874cca9 sysutils/beats8: New port
Add sysutils/beats8, beats component for ELK 8.x.

There are many breaking changes in 8.x versions, see
https://www.elastic.co/guide/en/beats/libbeat/8.5/breaking-changes-8.0.html
for details.

Release notes for ELK 8.x are located here:
https://www.elastic.co/guide/en/beats/libbeat/8.5/release-notes.html
2022-11-26 22:03:17 +01:00

20 lines
476 B
Go

--- dev-tools/mage/settings.go.orig 2022-09-27 13:19:27 UTC
+++ dev-tools/mage/settings.go
@@ -30,7 +30,6 @@ import (
"sync"
"time"
- "github.com/magefile/mage/sh"
"github.com/pkg/errors"
"golang.org/x/tools/go/vcs"
@@ -249,7 +248,8 @@ var (
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
}