Package Details: terraform-ls 0.38.8-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: MPL-2.0
Submitter: xenrox
Maintainer: xenrox
Last Packager: xenrox
Votes: 22
Popularity: 0.59
First Submitted: 2020-09-22 22:19 (UTC)
Last Updated: 2026-07-15 09:53 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

marmis commented on 2026-07-15 10:03 (UTC)

Thank you very much!

xenrox commented on 2026-07-15 09:57 (UTC)

I have enabled support for debug packages.

marmis commented on 2026-07-01 03:56 (UTC) (edited on 2026-07-09 22:43 (UTC) by marmis)

Hi, could you please add support for debug packages as per the Go package guidelines? Also, stripping with makepkg leads to smaller binaries than with -trimpath.

According to my tests, the following changes are enough. Thanks!

improve-debug-package.patch
diff --git a/PKGBUILD b/PKGBUILD
index 3f3307c..4a9ca42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,8 +17,9 @@ build() {
     export CGO_CFLAGS="${CFLAGS}"
     export CGO_CXXFLAGS="${CXXFLAGS}"
     export CGO_LDFLAGS="${LDFLAGS}"
-    export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-    go build -ldflags "-X main.rawVersion=$pkgver -X main.prerelease="
+    export GOPATH="${srcdir}"
+    export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
+    go build -ldflags "-compressdwarf=false -linkmode external -X main.rawVersion=$pkgver -X main.prerelease="
 }

 package() {

Coelacanthus commented on 2024-01-16 16:10 (UTC)

Please follow RFC16 use MPL-2.0

groovytron commented on 2023-02-17 10:36 (UTC) (edited on 2023-02-17 10:36 (UTC) by groovytron)

I can confirm that changing the go build command in the PKGBUILD works. Thanks a lot @TheEdgeOfRage.

TheEdgeOfRage commented on 2023-02-17 09:17 (UTC)

Changing the go build command to this fixes the build issue:

go build -ldflags "-X main.rawVersion=$pkgver"

just1602 commented on 2023-02-17 02:45 (UTC)

I've the following error when I try to install the latest version of this package:

# github.com/hashicorp/terraform-ls
main.version: cannot set with -X: not a var of type string (type:*github.com/hashicorp/go-version.Version)
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'terraform-ls-0.30.2-1': 
error: packages failed to build: terraform-ls-0.30.2-1

xenrox commented on 2022-10-13 12:45 (UTC)

I have added the new architectures, thanks!

whynothugo commented on 2022-10-12 13:25 (UTC)

This builds fine on aarch64:

diff --git a/.SRCINFO b/.SRCINFO
index 57cb937..2c5ddea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = terraform-ls
    pkgrel = 1
    url = https://github.com/hashicorp/terraform-ls
    arch = x86_64
+   arch = aarch64
    license = custom:MPL2
    makedepends = go
    options = !lto
diff --git a/PKGBUILD b/PKGBUILD
index c1fd21a..edddfc4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=terraform-ls
 pkgver=0.29.2
 pkgrel=1
 pkgdesc='Terraform Language Server'
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 url='https://github.com/hashicorp/terraform-ls'
 license=('custom:MPL2')
 makedepends=('go')

xenrox commented on 2022-06-07 21:56 (UTC)

Sorry, seems like they revoked the first release and released it a second time.