From 8c9b5efb9428c136f6b89dce0d60d31463e49484 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Mon, 4 Oct 2021 14:18:24 +0100 Subject: [PATCH] infracost: 0.9.6 -> 0.9.8 --- pkgs/tools/misc/infracost/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix index 43dcbc4a74f..a22e6eab06c 100644 --- a/pkgs/tools/misc/infracost/default.nix +++ b/pkgs/tools/misc/infracost/default.nix @@ -2,15 +2,15 @@ buildGoModule rec { pname = "infracost"; - version = "0.9.6"; + version = "0.9.8"; src = fetchFromGitHub { owner = "infracost"; rev = "v${version}"; 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}" ]; @@ -18,9 +18,16 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; checkInputs = [ terraform ]; + # Short only runs the unit-tests tagged short + checkFlags = [ "-v" "-short" ]; checkPhase = '' 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 '';