terraform-ls: 0.19.1 -> 0.20.0

This commit is contained in:
06kellyjac 2021-08-02 14:13:42 +01:00
parent e60aa92068
commit 463edc0d40

View file

@ -2,36 +2,27 @@
buildGoModule rec { buildGoModule rec {
pname = "terraform-ls"; pname = "terraform-ls";
version = "0.19.1"; version = "0.20.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-ag8Dq3lhLoKE4rgrnWLHtKRHEnw/ytyXI+pRt5CgZJI="; sha256 = "sha256-G1i5SS1BY+h8qPPjrZ9HCnKX3o2VkwvpeHPNxW6rnuI=";
}; };
vendorSha256 = "sha256-/lpjlThr6HPkuJ6om9ifBsdsh0x4kVXM6PAonk7GJCY="; vendorSha256 = "sha256-nRElOa9IQ31Wh01wTFM6pazDYFnmR06vkU4CI8Gx4Vw=";
ldflags = [ "-s" "-w" "-X main.version=v${version}" "-X main.prerelease=" ]; ldflags = [ "-s" "-w" "-X main.version=v${version}" "-X main.prerelease=" ];
preCheck = '' # There's a mixture of tests that use networking and several that fail on aarch64
# Remove tests that requires networking doCheck = false;
rm internal/terraform/exec/exec_test.go
'' + lib.optionalString stdenv.isAarch64 ''
# Not all test failures have tracking issues as HashiCorp do not have
# aarch64 testing infra easily available, see issue 549 below.
# Remove file that contains `TestLangServer_workspaceExecuteCommand_modules_multiple` doInstallCheck = true;
# which fails on aarch64: https://github.com/hashicorp/terraform-ls/issues/549 installCheckPhase = ''
rm internal/langserver/handlers/execute_command_modules_test.go runHook preInstallCheck
$out/bin/terraform-ls --help
# `TestModuleManager_ModuleCandidatesByPath` variants fail $out/bin/terraform-ls version | grep "v${version}"
rm internal/terraform/module/module_manager_test.go runHook postInstallCheck
# internal/terraform/module/module_ops_queue_test.go:17:15: undefined: testLogger
# internal/terraform/module/watcher_test.go:39:11: undefined: testLogger
# internal/terraform/module/watcher_test.go:79:14: undefined: testLogger
rm internal/terraform/module/{watcher_test,module_ops_queue_test}.go
''; '';
meta = with lib; { meta = with lib; {