mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #126518 from 06kellyjac/terraform-ls
terraform-ls: 0.16.2 -> 0.18.0
This commit is contained in:
commit
08b351d45e
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue