makedeb


hcloud 1.29.0-4


A command-line interface for Hetzner Cloud

Click here to go back to the commit logs for hcloud.

Commit:


Hash: 0738d8e713f924437734bbdf04e852b31348afe6

Message: Set version string correctly

Diff


diff --git a/.SRCINFO b/.SRCINFO
index f3de5da..955af70 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ generated-by = makedeb-makepkg
 pkgbase = hcloud
 	pkgdesc = A command-line interface for Hetzner Cloud
 	pkgver = 1.29.0
-	pkgrel = 2
+	pkgrel = 3
 	url = https://github.com/hetznercloud/cli.git
 	arch = any
 	makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index 4b764fb..aef56b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Guillaume Fournier-Mayer <giom@mailbox.org>
 pkgname=hcloud
 pkgver=1.29.0
-pkgrel=2
+pkgrel=3
 arch=('any')
 makedepends=('git' 'golang')
 url="https://github.com/hetznercloud/cli.git"
@@ -10,6 +10,12 @@ sha256sums=('SKIP')
 source=("git+${url}/#tag=v${pkgver}")
 conflicts=("hcloud-cli")
 
+
+prepare(){
+    cd cli/internal/version
+    sed -i "s/was not built properly/v${pkgver}/" version.go
+}
+
 package() {
     cd cli/
     go build -o hcloud cmd/hcloud/main.go