pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
hcloud: Pass version number
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Jul 17 14:44:46 2022 +0200
Changeset: a412ba8c6327bfebd79ae10468213fa685436be3
Modified Files:
hcloud/Makefile
Log Message:
hcloud: Pass version number
Now `hcloud version' properly print the version instead of complainings with
`hcloud was not built properly'.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a412ba8c6327bfebd79ae10468213fa685436be3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
hcloud/Makefile | 2 ++
1 file changed, 2 insertions(+)
diffs:
diff --git a/hcloud/Makefile b/hcloud/Makefile
index 9463ed8b7b..4809cf084e 100644
--- a/hcloud/Makefile
+++ b/hcloud/Makefile
@@ -11,6 +11,8 @@ HOMEPAGE= https://github.com/hetznercloud/cli
COMMENT= Command-line interface for Hetzner Cloud
LICENSE= mit
+GO_BUILD_PATTERN+= -ldflags ' \
+ -X github.com/hetznercloud/cli/internal/version.Version=${PKGVERSION_NOREV}'
GO_BUILD_PATTERN+= ./cmd/hcloud
.include "go-modules.mk"
Home |
Main Index |
Thread Index |
Old Index