Merge pull request #126518 from 06kellyjac/terraform-ls

terraform-ls: 0.16.2 -> 0.18.0
This commit is contained in:
Sandro 2021-06-11 10:32:43 +02:00 committed by GitHub
commit 08b351d45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,25 +2,30 @@
buildGoModule rec {
pname = "terraform-ls";
version = "0.16.2";
version = "0.18.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5+h1fyTCp1jUZeKRCeDhfqAA11SMyR5nw2Y2x6JyIwY=";
sha256 = "sha256-JctiWJ2HeFtrrOwCe1MCzxTkE2855FsgFocaAgK4fMk=";
};
vendorSha256 = "sha256-m5ddUwuTX0mSihkoGIMQKidptwUL8Bao5HgHJBWX0os=";
vendorSha256 = "sha256-r4/WTzI1unvmjKOSJsaHVkws2/qWLuRrHLlzwckrm2Q=";
# tests fail in sandbox mode because of trying to download stuff from releases.hashicorp.com
doCheck = false;
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version} -X main.prerelease=")
'';
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
preCheck = ''
# Remove test that requires networking
rm internal/terraform/exec/exec_test.go
'';
meta = with lib; {
description = "Terraform Language Server (official)";
homepage = "https://github.com/hashicorp/terraform-ls";
changelog = "https://github.com/hashicorp/terraform-ls/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ mbaillie ];
maintainers = with maintainers; [ mbaillie jk ];
};
}