infracost: 0.9.6 -> 0.9.8

This commit is contained in:
06kellyjac 2021-10-04 14:18:24 +01:00
parent 03754a32a0
commit 8c9b5efb94

View File

@ -2,15 +2,15 @@
buildGoModule rec { buildGoModule rec {
pname = "infracost"; pname = "infracost";
version = "0.9.6"; version = "0.9.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "infracost"; owner = "infracost";
rev = "v${version}"; rev = "v${version}";
repo = "infracost"; repo = "infracost";
sha256 = "sha256-lcvpNhfSgr8ky03sTo7kjnaLUJeIrzFqpYUjvQpT1Po="; sha256 = "sha256-8XS30fRxHPady/snr3gfo8Ryiw9O7EeDezcYYZjod1w=";
}; };
vendorSha256 = "sha256-TKs3xuZaO9PvlAcV5GDa3Jb36zeVWX3LcdcPxWR6KzE="; vendorSha256 = "sha256-8r7v3526kY+rFHkl1+KEwNbFrSnXPlpZD6kiK4ea+Zg=";
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ]; ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
@ -18,9 +18,16 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
checkInputs = [ terraform ]; checkInputs = [ terraform ];
# Short only runs the unit-tests tagged short
checkFlags = [ "-v" "-short" ];
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
make test
# Remove tests that require networking
rm cmd/infracost/{breakdown_test,diff_test}.go
# ldflags are required for some of the version testing
go test ./... $checkFlags ''${ldflags:+-ldflags="$ldflags"}
runHook postCheck runHook postCheck
''; '';