Unverified Commit 325a2aec authored by Aaron Jheng's avatar Aaron Jheng
Browse files

terraform-ls: 0.30.1 -> 0.31.3

parent 0ed682c3
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, stdenv }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "terraform-ls";
  version = "0.30.1";
  version = "0.31.3";

  src = fetchFromGitHub {
    owner = "hashicorp";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-enPnj4/p83hQkVv821MGyGipgEmVo12IZzy/3y8UprQ=";
    hash = "sha256-OzqJ/F3GeIaX4/z1KJdok8kUfualRzHv1AIM8dt8Kik=";
  };
  vendorSha256 = "sha256-U3zslBDVz5nvhNgcn5L84hSUolf7XFCuh7zMZxyW/gQ=";

  ldflags = [ "-s" "-w" "-X main.version=v${version}" "-X main.prerelease=" ];
  vendorHash = "sha256-pEuen7CWniFzLgL1v+Xt1l6hde3YpyOMmQalj08UBX8=";

  ldflags = [ "-s" "-w" ];

  # There's a mixture of tests that use networking and several that fail on aarch64
  doCheck = false;
@@ -21,7 +22,7 @@ buildGoModule rec {
  installCheckPhase = ''
    runHook preInstallCheck
    $out/bin/terraform-ls --help
    $out/bin/terraform-ls version | grep "v${version}"
    $out/bin/terraform-ls --version | grep "${version}"
    runHook postInstallCheck
  '';