Package Details: terraform-ls 0.14.0-1

Git Clone URL: https://aur.archlinux.org/terraform-ls.git (read-only, click to copy)
Package Base: terraform-ls
Description: Terraform Language Server
Upstream URL: https://github.com/hashicorp/terraform-ls
Licenses: custom:MPL2
Submitter: xenrox
Maintainer: xenrox
Last Packager: xenrox
Votes: 4
Popularity: 1.01
First Submitted: 2020-09-22 22:19
Last Updated: 2021-02-23 22:34

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

xenrox commented on 2020-12-09 16:53

The version is correct now.

FallenWarrior2k commented on 2020-12-09 07:24

Could you please include build flags to set the version on the resulting binary?

diff --git a/PKGBUILD b/PKGBUILD
index db45658..f2ea048 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,7 +18,7 @@ build() {
     export CGO_CXXFLAGS="${CXXFLAGS}"
     export CGO_LDFLAGS="${LDFLAGS}"
     export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-    go build
+    go build -ldflags "-X main.version=$pkgver -X main.prerelease="
 }

 package() {