ports/sysutils/prometheus/patches/patch-_promu_yml

26 lines
1.3 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Don't include user and hostname into build and build verbose.
Index: .promu.yml
--- .promu.yml.orig
+++ .promu.yml
2023-09-08 05:21:37 +00:00
@@ -16,13 +16,13 @@ build:
2023-08-16 22:26:55 +00:00
- builtinassets
windows:
- builtinassets
- flags: -a
+ flags: -v -a
ldflags: |
2023-09-08 05:21:37 +00:00
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Revision}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
2023-08-16 22:26:55 +00:00
- -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
2023-09-08 05:21:37 +00:00
- -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Version={{.Version}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildUser=OpenBSD
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
2023-08-16 22:26:55 +00:00
tarball:
# Whenever there are new files to include in the tarball,
2023-09-08 05:21:37 +00:00
# remember to make sure the new files will be generated after `make build`.