From 2673dd0e2bbf969182d075c861496a436365bbb9 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Wed, 16 Feb 2022 17:17:05 +0000 Subject: [PATCH] infracost: 0.9.8 -> 0.9.18 --- pkgs/tools/misc/infracost/default.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix index a22e6eab06cc..293ee08a2752 100644 --- a/pkgs/tools/misc/infracost/default.nix +++ b/pkgs/tools/misc/infracost/default.nix @@ -2,31 +2,31 @@ buildGoModule rec { pname = "infracost"; - version = "0.9.8"; + version = "0.9.18"; src = fetchFromGitHub { owner = "infracost"; rev = "v${version}"; repo = "infracost"; - sha256 = "sha256-8XS30fRxHPady/snr3gfo8Ryiw9O7EeDezcYYZjod1w="; + sha256 = "sha256-ukFY6Iy7RaUjECbMCMdOkulMdzUlsoBnyRiuzldXVc8="; }; - vendorSha256 = "sha256-8r7v3526kY+rFHkl1+KEwNbFrSnXPlpZD6kiK4ea+Zg="; + vendorSha256 = "sha256-D4tXBXtD3FlWvp4GPIuo/2p3MKg81DVPT5pKVOGe/5c="; ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ]; - # Install completions post-install + subPackages = [ "cmd/infracost" ]; + nativeBuildInputs = [ installShellFiles ]; - checkInputs = [ terraform ]; - # Short only runs the unit-tests tagged short - checkFlags = [ "-v" "-short" ]; + # -short only runs the unit-tests tagged short + checkFlags = [ "-short" ]; checkPhase = '' runHook preCheck # 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"} + rm cmd/infracost/{breakdown_test,diff_test,run_test}.go + + go test $checkFlags ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES ./... runHook postCheck '';