From 401ab9f095a3ee6a4354e27b4ae1dfff181388da Mon Sep 17 00:00:00 2001 From: Andrey Kuznetsov Date: Tue, 3 Nov 2020 03:39:40 +0300 Subject: [PATCH] terraform-ls: 0.7.0 -> 0.10.0, switch to buildGoModule --- pkgs/development/tools/misc/terraform-ls/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/terraform-ls/default.nix b/pkgs/development/tools/misc/terraform-ls/default.nix index 4d999f32446b..763cd4fcdb45 100644 --- a/pkgs/development/tools/misc/terraform-ls/default.nix +++ b/pkgs/development/tools/misc/terraform-ls/default.nix @@ -1,18 +1,22 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "terraform-ls"; - version = "0.7.0"; + version = "0.11.0"; src = fetchFromGitHub { owner = "hashicorp"; repo = pname; rev = "v${version}"; - sha256 = "1afdd1zs242nh1cync5ip1fbah34wc3gbsx3hwwiisc8yziwiq18"; + sha256 = "XOKaNpYR31lKpA33+7WU2KYjgEx4g6gpp3IAjWtb3Zk="; }; + vendorSha256 = "8NdeCD558r0tV+ZR4MvLl5CzeNj8cUGtqwvJ2ZhS7mI="; goPackagePath = "github.com/hashicorp/terraform-ls"; + # tests fail in sandbox mode because of trying to download stuff from releases.hashicorp.com + doCheck = false; + buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; meta = with lib; {