Package Details: terraform-ls 0.36.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: MPL-2.0
Submitter: xenrox
Maintainer: xenrox
Last Packager: xenrox
Votes: 19
Popularity: 0.027239
First Submitted: 2020-09-22 22:19 (UTC)
Last Updated: 2024-11-18 13:52 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

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.

parcimonic commented on 2022-06-07 21:37 (UTC)

Build is failing due to checksum mismatch:

==> Making package: terraform-ls 0.28.0-1 (Tue Jun  7 18:33:53 2022)
==> Retrieving sources...
  -> Downloading terraform-ls-0.28.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1043k    0 1043k    0     0  2506k      0 --:--:-- --:--:-- --:--:-- 2506k
==> Validating source files with sha256sums...
    terraform-ls-0.28.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

Output of sha256sum:

$ sha256sum terraform-ls-0.28.0.tar.gz
3c52faab9ef60f246c1f046b5689306ec6265eca6d560833dd797b8ec80b6129  terraform-ls-0.28.0.tar.gz

xenrox commented on 2020-12-09 16:53 (UTC)

The version is correct now.

FallenWarrior2k commented on 2020-12-09 07:24 (UTC)

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() {